10.7. Configure Security Realms for the Management Interfaces
This example shows the default configuration for the ManagementRealm security realm. It uses a file called mgmt-users.properties to store its configuration information.
Example 10.7. Default ManagementRealm
The following commands create a new security realm called TestRealm and set the directory for the relevant properties file.
Example 10.8. Writing a Security Realm
/host=master/core-service=management/security-realm=TestRealm/:add /host=master/core-service=management/security-realm=TestRealm/authentication=properties/:add(path=TestUsers.properties, relative-to=jboss.domain.config.dir)
/host=master/core-service=management/security-realm=TestRealm/:add
/host=master/core-service=management/security-realm=TestRealm/authentication=properties/:add(path=TestUsers.properties, relative-to=jboss.domain.config.dir)
After adding a security realm, supply it as a reference to the Management Interface.
Example 10.9. Add a Security Realm to a Management Interface
/host=master/core-service=management/management-interface=http-interface/:write-attribute(security-realm=TestRealm)
/host=master/core-service=management/management-interface=http-interface/:write-attribute(security-realm=TestRealm)