Securing the JMX Console
sun81 Aug 2, 2010 2:16 PMHi,
I am working on securing the JMX console for JBOSS 4.2.1 and following the below article to make the necessary configuration changes:
http://community.jboss.org/wiki/securetheJmxConsole
But, even after doing the necessary steps and when I tried to login to the JMX console it is not working...I am getting the below error message int he Jboss server console:
13:48:00,014 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
I did the below steps:
1. {jboss.server.home.dir}/deploy/jmx-console.war/WEB-INF/web.xml : Uncommented the block :<security-constraint>
and added <login-config> block like the one below:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>jmx-console</realm-name>
</login-config>
2. Changed the username/password in the file :
{jboss.server.home.dir}/conf/props/jmx-console-users.properties
3. {jboss.server.home.dir}/conf/login-config.xml
Changed the path to the web-console-users.properties and the web-console-roles.properties as follows (add props/ to the front of the path)
Restarted my server and tried to login to JMX- Console, it is prompting for the user/pwd but when I give the right one it is giving the above error.
Can some body please guide me through the steps.
I have attached the files I have changed.
Thanks,
Bhanu.
-
login-config.xml 6.9 KB
-
jmx-console-roles.properties.zip 265 bytes
-
jmx-console-users.properties.zip 247 bytes
-
web.xml 4.0 KB