0 Replies Latest reply on Sep 15, 2009 4:00 AM by pashkinmv

    jboss j_security_check: russian letters password problem

      I'm using JBoss 4.2.2 and standard FORM authorization.
      Login page charset is UTF-8.
      When I press submit button and it redirects me  to j_securitry_check, in DatabaseServerLoginModule I have the password in wrong encoding.

      Example: entered password but using russial letters: "FUBA", in DatabaseServerLoginModule I have: "фыва".

      Any ideas how to solve this problem?

      login-config.xml content:
      <application-policy name="myPolicy">

      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
      <module-option name="dsJndiName">java:/jdbc/myUser</module-option>
      <module-option name="principalsQuery">select password from login where login = ?</module-option>
      <module-option name="rolesQuery">select role_name, NULL from v_user_role where login = ?</module-option>
      <module-option name="hashAlgorithm">MD5</module-option>
      <module-option name="hashEncoding">HEX</module-option>
      <module-option name="hashCharset">UTF-8</module-option>
      </login-module>

      </application-policy>