I thought it might be a group/role problem, so I tried to add the user to
the group that has permission to access the web app.  I'm using this code in
MyUserManager (extends DataSourceUserManager):

  public User getUser(String parm1) {
    User aUser = super.getUser( parm1);
    try {
     Group portalUsers = super.getGroup("Portal User");
     System.out.println("is member of portal
users="+aUser.isMemberOf(portalUsers));
     aUser.addToGroup(portalUsers);
     System.out.println("is member of portal
users="+aUser.isMemberOf(portalUsers));
     System.out.println("group
info:"+portalUsers.getName()+":"+portalUsers.getDescription());
    }
    catch (Exception ex) {
     ex.printStackTrace();
    }
    return aUser;
  }

After aUser.addToGroup(portalUsers), aUser.isMemberOf(portalUsers) still
returns false.  What am I doing wrong?


----- Original Message -----
From: "Eric Hodges" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 12:45 PM
Subject: Re: Question about DataSourceUserManager


> Even if I write my own user manager, I'm not sure what I should make it do
> to fix the problem.  The one from Orion seems to be doing everything
> correctly.  It just never lets me in.  The AbstractUserManager class
doesn't
> seem to have any methods that would help.
>
> ----- Original Message -----
> From: "Michael Jara" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 19, 2001 10:43 AM
> Subject: Re: Question about DataSourceUserManager
>
>
> > I had the same problem with the DataSourceUserManager.  Judging by
> messages
> > in the mailing-list archive, it looks like some people have gotten it
> > working, but I have no idea how.
> >
> > I ended up writing my own user manager, which didn't take very long.  (I
> > spent more time trying to get the DataSourceUserManager working, than
> > writing my own!)  You might try that, or try the EJBUserManager.
> >
> > A word of warning though: After I solved that problem, I ran into some
> > issues with Orion's EJB security for which I never found a solution.
But
> I
> > was working with application clients...  You might be fine if you are
> using
> > Orion's integrated web server(?)
> >
> > Mike
> >
> > ----- Original Message -----
> > From: "Eric Hodges" <[EMAIL PROTECTED]>
> > To: "Orion-Interest" <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 8:36 PM
> > Subject: Question about DataSourceUserManager
> >
> >
> > > I'm trying to set up a DataSourceUserManager.  I've got it configured
to
> > > read from our user database, but it never authenticates.  It asks for
> the
> > > user name and password 3 times and gives a 401 to the browser.  I
> wrapped
> > it
> > > with my own class so I could see which methods were getting called.
> > > getUser() is called and returns the correct user information, so I
know
> > it's
> > > seeing our database.  If I call user.authenticate(user.getPassword())
it
> > > returns true.  What am I doing wrong?
> > >
> > > /*
> > > Eric Hodges,  Chief Technology Officer
> > > Mongoose Technology, Inc.
> > > "We chase cobras so you don't have to."
> > > */
> > >
> > >
> >
> >
>
>
>


Reply via email to