[jboss-user] [Security & JAAS/JBoss] - How to find out the problem when login doesn't work when usi
Kentzhou
do-not-reply at jboss.com
Tue Dec 26 19:06:42 EST 2006
hi, I try to config Jboss using sql server as security datasource. The datasource is okay when I test it.
The file jboss-web.xml in war file as:
<jboss-web>
<security-domain>java:/jaas/todo</security-domain>
</jboss-web>
In file login-config.xml, I add following info:
<application-policy name = "todo">
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required" >
<module-option name = "dsJndiName" >java:/MSSQLDS</module-option>
<module-option name = "principalQuery" >select passwd from users where login = ? </module-option>
<module-option name = "rolesQuery" >select role, 'Roles' from user_roles where login = ? </module-option>
</login-module>
</application-policy>
The I start Jboss and visit the application todo, every time, it reminds me input login id and password. But when I input the login id and password get from database, It can pass the logn. The application asks for login Id and password again and again. But there is no any error message.
How can I find out the reason for this issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996351#3996351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996351
More information about the jboss-user
mailing list