Hello
I've uncommented SSO in jbossweb-tomcat50.sar/server.xml
I'm using two LoginModules in my application policy:
DatabaseServerLoginModule and
ClientLoginModule
Still I get no security context in my EJB, which
forces me to pass a username as a parameter and
execute the roles query myself again from inside
the EJB - a clearly poor solution.
What do I miss ?
Any help would be appreciated.
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag =
"required">
<module-option name = "dsJndiName">java:/MySqlDS</module-option>
<module-option name = "principalsQuery">select Password from users where
Username=?</module-option>
<module-option name = "rolesQuery">select rolename, 'Roles' from user_roles
where username=?</module-option>
</login-module>
<login-module code="org.jboss.security.ClientLoginModule" flag = "required">
<module-option name = "password-stacking">useFirstPass</module-option>
<module-option name = "multi-threaded">true</module-option>
</login-module>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842802#3842802
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842802
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user