This content has been marked as final.
Show 1 reply
-
1. Found the problem.
robr Apr 4, 2005 5:39 PM (in response to robr)I did not make the entry the way I should have in the login.xml file. I made the following entry.
<module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashAlgorithm">base64</module-option>
It should have been<module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">base64</module-option>
That solved the problem.
My application-policy in the login-config.xml file now looks like this.<application-policy name="webquotes"> <authentication> <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required"> <module-option name="dsJndiName">java:/webquotes</module-option> <module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">base64</module-option> <module-option name="principalsQuery"> select hashpasswd from users where username=? </module-option> <module-option name="rolesQuery"> select role,'Roles' from users where username=? </module-option> </login-module> </authentication> </application-policy>