My post on the mailinglist did not quite work, so here it is again:


Hi guys,



I'm having the same problem, somehow my login/pass is not beiing accepted. I'm 
using the following config (in login-confog.xml)  to try to get 
user/password/role information from my database:



<application-policy name = "<appname>">

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

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

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;guest

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = "dsJndiName">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;java&#58;/<appname>

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = 
"principalsQuery">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SELECT c_password FROM 
t_user WHERE c_username=?

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<module-option name = "rolesQuery">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SELECT c_role, "Roles" 
FROM t_user WHERE c_username=?

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

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

&nbsp; &nbsp;</authentication>

</application-policy>



There are two items in this configuration of which I'm not entirely sure, these 
are the "dsJndiName" and the "SELECT c_role, "Roles" FROM t_user" section. Do I 
have to specify my jndi source somewhere else? If yes, where? Can't I just give 
my driver and database location with the login/pass? I would really appriciate 
it if someone could shine a light on this problem.



Is there a logging option I can turn on? at the moment I've got no clue to 
where the authentication goes wrong.



Thnx!

Robbert
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=619#619
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