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>">
<authentication>
<login-module code =
"org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
<module-option name = "unauthenticatedIdentity">
guest
</module-option>
<module-option name = "dsJndiName">
java:/<appname>
</module-option>
<module-option name = "principalsQuery">
SELECT c_password FROM t_user WHERE c_username=?
</module-option>
<module-option name = "rolesQuery">
SELECT c_role, "Roles" FROM t_user WHERE c_username=?
</module-option>
</login-module>
</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
mocools (AndroMDA Forum) wrote:
Thank you both very much :) At least I know that part of my app is correct! I
was beginning to grow desperate here...
I guess I have to do some more investigating here... The passwords are being
rejected, no matter what I try! :)
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=610#610
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
-------------------------------------------------------
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