11.8.6. 从默认的安全区删除无提示验证
JBoss EAP 6 的默认安装包含一个用于本地管理 CLI 用户的无提示验证(Silent Authentication)方法。这允许本地用户无需用户名或密码验证就可以访问管理 CLI。启用这个功能是为了方便,并协助本地用户无需验证就可以运行管理 CLI 脚本。它是一个非常有用的功能,特别是对本地配置的访问通常也会让用户可以添加自己的细节或禁用安全检查。
security-realm 部分里的 local 来实现。这适用于独立服务器的 standalone.xml 或受管域的 host.xml。你应该只在理解了对特定服务器配置的影响后才考虑删除 local 元素。
local 元素。
例 11.15. security-realm 里的 local 元素示例
<security-realms>
<security-realm name="ManagementRealm">
<authentication>
<local default-user="$local"/>
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
</security-realm>
<security-realm name="ApplicationRealm">
<authentication>
<local default-user="$local" allowed-users="*"/>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization>
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
</security-realms>
过程 11.7. 从默认的安全区删除无提示验证
用管理 CLI 删除无提示验证
按要求从管理区和应用程序区删除local元素。- 从管理区删除
local元素。对于独立服务器
/core-service=management/security-realm=ManagementRealm/authentication=local:remove
对于受管域
/host=HOST_NAME/core-service=management/security-realm=ManagementRealm/authentication=local:remove
- 从应用程序区删除
local元素。对于独立服务器
/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
对于受管域
/host=HOST_NAME/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
无提示验证从 ManagementRealm 和 ApplicationRealm 里删除了。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.