Unauthorized access when using RBAC in JBoss EAP 7.2.0
Issue
Getting unauthorized access error when adding a user on the server, using add-user.sh from the bin directory.
[root@hostname configuration]# cd /opt/rh/eap7/root/usr/share/wildfly/bin
[root@hostname bin]# ./add-user.sh
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): b
Enter the details of the new user to add.
Using realm 'ApplicationRealm' as discovered from the existing property files.
Username : user
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
- The password should be different from the username
- The password should not be one of the following restricted values {root, admin, administrator}
- The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password :
Re-enter Password :
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: ApplicationRealm
About to add user 'user' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'user' to file '/etc/opt/rh/eap7/wildfly/standalone/application-users.properties'
Added user 'user' to file '/etc/opt/rh/eap7/wildfly/domain/application-users.properties'
Added user 'user' with groups ApplicationRealm to file '/etc/opt/rh/eap7/wildfly/standalone/application-roles.properties'
Added user 'user' with groups ApplicationRealm to file '/etc/opt/rh/eap7/wildfly/domain/application-roles.properties'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes
To represent the user add the following to the server-identities definition <secret value="ZXNvYTEyMyQ=" />
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.