JAAS is configured in your application server, in JBoss: 
jboss/server/default/conf/login-config.xml



you can put everything in a plain text file, or in a dataabse .. you just have 
to select the proper login module, read the JBoss documentation for more 
detailed information



here's an example:



&nbsp; &nbsp; <application-policy name = "MySecurityRealm">

&nbsp; &nbsp; &nbsp; &nbsp;<authentication>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <login-module code = 
"org.jboss.security.auth.spi.DatabaseServerLoginModule"

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag = "required">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = 
"unauthenticatedIdentity">anonymous</module-option>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = 
"dsJndiName">java&#58;/DefaultDS</module-option>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = 
"principalsQuery">SELECT PASSWORD FROM USERS WHERE NAME=?</module-option>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = 
"rolesQuery">SELECT ROLE, 'Roles' FROM USERS WHERE NAME=?</module-option>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </login-module>

&nbsp; &nbsp; &nbsp; &nbsp;</authentication>

&nbsp; &nbsp; </application-policy>

&nbsp;
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2414#2414
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to