[jboss-user] [Security & JAAS/JBoss] - Re: Custom Password encryption on authentication

VAkuthota do-not-reply at jboss.com
Mon Nov 6 17:27:49 EST 2006


Why do we have to write our own custom class, as per documentation it is supporting the hashalgorithm already.

if you mention the following options in login-config.xml

   <application-policy name="myapp">
  |        <authentication>
  | 	<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
  | 	     	<module-option name="dsJndiName">java:/ngirmDS</module-option>
  | 		<module-option name="principalsQuery">Select PASSWORD from USERS where LOGINNAME =?</module-option>
  | 		<module-option name="rolesQuery">Select GROUPNAME , 'Roles' from USERGRPASSOC where LOGINNAME =?</module-option>
  | 		<module-option name="hashAlgorithm">SHA</module-option>
  | 		<module-option name="hashEncoding">Base64</module-option>
  | 		<module-option name="hashCharset">UTF-8</module-option>
  | 	</login-module>
  |         </authentication>
  |     </application-policy>

But i tried this, it is not working.

Any idea ??

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983586#3983586

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983586



More information about the jboss-user mailing list