RE: EJBUserManager, what am i missing?

2001-02-23 Thread Christian Billen

Sorry that was a typo, my principals.xml is exactly like the one you show.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
> Cannon-Brookes
> Sent: Friday, February 23, 2001 5:24 PM
> To: Orion-Interest
> Subject: RE: EJBUserManager, what am i missing?
>
>
> You have no group "usergroup" specified in your principals.xml as far as I
> can see.
>
> Create a principals.xml like this:
>
> 
>   
>   
>   
> 
>
> And then reference that from orion-application.xml.
>
> -mike
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
> > Billen
> > Sent: Saturday, February 24, 2001 9:43 AM
> > To: Orion-Interest
> > Subject: EJBUserManager, what am i missing?
> >
> >
> > I want to implement EJBUserManager in my application, but the
> > authentication
> > from the web doesn't accept my credentials and keep popping up
> > until finally
> > I get a 401.
> >
> > Here's how I'm doing it:
> >
> > 1) I defined the EJBUserManager in ejb-jar.xml and it gets instantiated
> > properly: tables COM_EVERMIND_EJB_EJBUSER and
> > COM_EVERMIND_EJB_EJBUSER_GROUPS get created
> >
> > 2) I created a user "joeuser" with a password in the user table and made
> > that user belong to "usergroup" in groups
> >
> > 3) In my web.xml I created a constraint on a resource:
> > 
> > 
> > /protectedurl
> > 
> > 
> > usergroup
> > 
> > 
> > 
> > BASIC
> > myapp-basic-realm
> > 
> > 
> > usergroup
> > 
> >
> > 4) In my application.xml I have a role defined:
> > 
> > manager
> > 
> >
> > 5) In my orion-application.xml I have defined the user manager and the
> > role->group mapping:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 6) I also removed the reference to principals.xml from
> > orion-application.xml
> > (If I leave it I get a 403 right away)
> >
> > 7) I finally, suggested by searching the list archive, defined
> > the groups in
> > my principals.xml:
> > 
> > 
> > 
> > 
> > 
> >
> > Everthing starts ok, no error message, if I try to access the
> > /protectedurl
> > I get the basic authentication prompt, I try to fill in
> "joeuser" with his
> > password but Orion doesn't take it and prompt me again until I get a 401
> > Unauthorized.
> >
> > What am I missing?
> >
> > Thanks,
> >
> > Christian
> >
> >
> >
>
>
>
>





RE: EJBUserManager, what am i missing?

2001-02-23 Thread Mike Cannon-Brookes

You have no group "usergroup" specified in your principals.xml as far as I
can see.

Create a principals.xml like this:







And then reference that from orion-application.xml.

-mike

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
> Billen
> Sent: Saturday, February 24, 2001 9:43 AM
> To: Orion-Interest
> Subject: EJBUserManager, what am i missing?
>
>
> I want to implement EJBUserManager in my application, but the
> authentication
> from the web doesn't accept my credentials and keep popping up
> until finally
> I get a 401.
>
> Here's how I'm doing it:
>
> 1) I defined the EJBUserManager in ejb-jar.xml and it gets instantiated
> properly: tables COM_EVERMIND_EJB_EJBUSER and
> COM_EVERMIND_EJB_EJBUSER_GROUPS get created
>
> 2) I created a user "joeuser" with a password in the user table and made
> that user belong to "usergroup" in groups
>
> 3) In my web.xml I created a constraint on a resource:
> 
>   
>   /protectedurl
>   
>   
>   usergroup
>   
> 
> 
>   BASIC
>   myapp-basic-realm
> 
> 
>   usergroup
> 
>
> 4) In my application.xml I have a role defined:
> 
>   manager
> 
>
> 5) In my orion-application.xml I have defined the user manager and the
> role->group mapping:
>
> 
> 
> 
> 
> 
>   
> 
>
> 6) I also removed the reference to principals.xml from
> orion-application.xml
> (If I leave it I get a 403 right away)
>
> 7) I finally, suggested by searching the list archive, defined
> the groups in
> my principals.xml:
> 
>   
> 
>   
> 
>
> Everthing starts ok, no error message, if I try to access the
> /protectedurl
> I get the basic authentication prompt, I try to fill in "joeuser" with his
> password but Orion doesn't take it and prompt me again until I get a 401
> Unauthorized.
>
> What am I missing?
>
> Thanks,
>
> Christian
>
>
>