此内容没有您所选择的语言版本。
Chapter 4. Securing the Console
If JBoss services need to listen on external IP addresses that may be visible to unauthorized users, it is important that authentication is enabled on the Admin Console. Failure to enable authentication could result in exposing administrative services on the JBoss Enterprise Application Platform instance to malicious users, which could result in Denial of Service (DoS) attacks.
Follow the instructions in this section to secure your Admin Console.
Note
In the instructions that follow, $PROFILE refers to the server profile used by the installation, for example, default, minimal, or any custom server profile created by the administrator. All specified paths are relative to
$JBOSS_HOME.
4.1. Enabling authentication 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
In the following
web.xml files:
server/$PROFILE/deploy/jmx-console.war/WEB-INF/web.xmlserver/$PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml
Uncomment the following
security-constraint fragment:
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
<description>An example security config that only allows
users with the
role JBossAdmin to access the HTML JMX console web application
</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>JBossAdmin</role-name>
</auth-constraint>
</security-constraint>
In the following
jboss-web.xml files:
server/$PROFILE/deploy/jmx-console.war/WEB-INF/jboss-web.xmlserver/$PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml
Ensure that a fragment similar to the following is included:
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.
-->
<security-domain>java:/jaas/jmx-console</security-domain>
</jboss-web>