0 Replies Latest reply on Mar 8, 2010 5:08 PM by ian12312

    Securing access to JMX-Console

    ian12312

      I am running JBoss 4.0.2 and want to secure the JMX-Console

       

      If I use simple clear text passwords in jmx-console-users.properties that it works fine.  However I need to use a secure password.  My login-config.xml now looks like this:

       

          <application-policy name = "jmx-console">
             <authentication>
                <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
                   flag = "required">
                 <module-option name="hashAlgorithm">MD5</module-option>
               <module-option name="hashEncoding">base64</module-option>
                 <module-option name="hashUserPassword">true</module-option>   
                 <module-option name="usersProperties">props/jmx-console-users.properties</module-option>
                 <module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
                </login-module>
             </authentication>
          </application-policy>

       

      and jmx-console-users.properties looks like this:

       

      admin=X03MO1qnZdYdgyfeuILPmQ==

       

      However when I try to login it fails.  Is there something else I am missing or is there somewhere I can look to see what authentication errors are occuring?