I take it appname is to be replaced with the name of the security realm ?


I have a login-config.xml that looks like this (I replaced the actual realm 
name though):





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

&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">guest</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>





the only thing I can see from here is that you are using double quotes around 
Roles in the rolesQuery, try using single quotes
--
Wouter Zoons - [EMAIL PROTECTED]

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


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to