JBoss Console JMX-Console's Security Settings

xiaoxiao2021-03-06  116

JBoss Console JMX-Console's Security Settings

Preface:

Use JBoss and start JBOSS, type in the address bar of the browser window.

Http: // localhost: 8080 / jmx-console can browse some information about JBoss deployment management, by default, you can enter this page by default, it can enter this page, which is convenient, but it is still a safe hidden danger. Because anyone just knows that Server IP can go in. Let's configure JBoss for this issue so that access JMX-Console must know the username and password to go in to visit J

surroundings

JBoss3.2.2

step:

1. Enter JMX-Console.war, usually this directory in the {jboss_home} / server / default / deploy directory.

2. Edit the web-inf / web.xml in this directory, and comment out the

3. Edit the Roles.properties and Users.properties of the web-inf / classes under this directory;

1) Use the username and password in the users.properties file, format UserName = Password. Of course, multiple users can be added in this format.

2) The username and role define the username and role in the Roles.Properties file, format UserName = Role. The Role here must correspond to in the web.xml file.

4. Edit the Web-INF / JBOSS-Web.xml file, open the part of the comment; here content corresponding to the security-domain corresponding {jboss_home} / server / default / conf / login-config. An Application-Policy in the XML this JAAS configuration file. Such as

Java: / jaaas / jmx-console

There is also: Login-config.xml

FLAG = "Required" />

5. OK! Everything is big! J Restart JBoss, you will appear in the input username and Password window J

转载请注明原文地址:https://www.9cbs.com/read-126498.html

New Post(0)