MyApp is the name you use in JAAS
http://docs.oracle.com/javase/6/docs/api/javax/security/auth/login/LoginContext.html#LoginContext(java.lang.String)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-03-14 11:52 GMT+01:00 mauro2java2011 <[email protected]>:
> tank you for your response.
> but from:
> Login configuration file (conf/login.config)
>
> PropertiesLogin {
>     org.apache.openejb.core.security.jaas.PropertiesLoginModule required
>     Debug=true
>     UsersFile="users.properties"
>     GroupsFile="groups.properties";
> };
> MyApp {
>     org.apache.openejb.core.security.jaas.SQLLoginModule required
>     dataSourceName="MyDataSource"
>     userSelect="SELECT username, password FROM users WHERE username=?"
>     groupSelect="SELECT username, grp FROM users WHERE username=?";
> };
>
>
> MyApp it is the name of the webapplication ????
> for example if i have many web app name web1 web2, web3 (or other names) i
> have to change the MyApp with web1 web2 web3 ?
> or MyApp remains inalterate?
>
>
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/use-the-java-ee-glaaery-into-TOMEE-with-secuirity-tp4668156p4668204.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to