It works. You are great. Thanks a lot.

-----Original Message-----
From: Romain Manni-Bucau [mailto:[email protected]] 
Sent: Wednesday, July 03, 2013 9:15 AM
To: [email protected]
Subject: Re: JAAS and TomEE

manager-gui=sapatel,tomee ;)

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/3 Patel, Sanjay <[email protected]>

> Questions regarding JAAS. Can't we define two users with same roles? 
> Below is my users.properties and groups.properties file. 
> Authentication works fine but for "sapatel" user, I get 403 (access denied).
> Everything works fine for tomee user.
>
> Here is my users.properties
> sapatel=test
> tomee=tomee
>
> and this is my groups.properties
> manager-gui=sapatel
> tomee-admin=sapatel
> manager-gui=tomee
> tomee-admin=tomee
>
> -----Original Message-----
> From: Marco de Booij [mailto:[email protected]]
> Sent: Wednesday, June 12, 2013 12:20 PM
> To: [email protected]
> Subject: Re: JAAS and TomEE
>
> It now works. There is something strange with the 
> http://tomee.apache.org/tomee-jaas.html page. It is completely 
> different from the content that I get when I want to contribute to the 
> page. On that page the parameters userClassNames and roleClassNames 
> are even different from the ones in your reply. With the configuration 
> on this page I managed to get it 100% working for the application maintenance 
> page.
>
>        <!-- JAAS Security Realm -->
>        <Realm className="org.apache.catalina.realm.JAASRealm"
> appName="PropertiesLogin"
> userClassNames="org.apache.openejb.core.security.jaas.UserPrincipal"
> roleClassNames="org.apache.openejb.core.security.jaas.GroupPrincipal">
>        </Realm>
>
> Regards,
>
> Marco
>
> Op 12-06-13 09:00, Romain Manni-Bucau schreef:
> > Hmm, if your loging.config contains PropertiesLoginModule it should 
> > be fine, if you copied/pasted the snippet we have on our website it 
> > should be PropertiesLogin:
> >
> > <Realm className="org.apache.catalina.realm.JAASRealm"
> > appName="PropertiesLogin"
> >
> >
> userClassNames="org.apache.openejb.core.security.AbstractSecurityService$User"
> >
> > roleClassNames="org.apache.openejb.core.security.AbstractSecuritySer
> > vi
> > ce$Group">
> > </Realm>
> >
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog:
> > **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.co
> > m/
> > >
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
>

Reply via email to