Following are the guidelines :
Secure JMX Console
- To secure the JMX Console using a username/password file
- Locate the jmx-console.war directory. This will normally be in $ (jboss.server.home.dir ) / deploy directory.
- Edit WEB-INF/web.xml and uncomment the security-constraint block.
- Edit WEB-INF/classes/jmx-console-users.properties or server/default/conf/props/jmx-console-users.properties (version >=4.0.2) and WEB-INF/classes/jmx-console-roles.properties or server/default/conf/props/jmx-console-roles.properties (version >=4.0.2) and change the users and passwords to what you desire. They will need the JBossAdmin role specified in the web.xml file to run the JMX Console.
- Edit WEB-INF/jboss-web.xml and uncomment the security-domain block. The security-domain value of jmx-console maps is declared in the login-config.xml JAAS configuration file which defines how authentication and authorization is done.
Securing Web Console
Repeat the above steps for the Web Console but use the following path:
- $ (jboss.server.home.dir )/ deploy / management/console-mgr.sar/web-console.war/web-inf/jboss-web.xml
- $ (jboss.server.home.dir )/ deploy / management/console-mgr.sar/web-console.war/web-inf/web.xml
- $ (jboss.server.home.dir )/ deploy / management/console-mgr.sar/web-console.war/web-inf/classes/web-console-users.properties
- $ (jboss.server.home.dir )/ deploy / management/console-mgr.sar/web-console.war/web-inf/classes/web-console-roles.properties
No comments:
Post a Comment