Creating User’s in JBOSS

Create 2 Users. one for Admin console and another for Slave to connect to master . Follow below steps .steps are same for Jboss EAP 7.x as well.
1.jbadmin/xxxxxxx (For Console )
2.controller/xxxxxxx ( For Slave to connect to Master )

D:\>cd jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>add-user.bat

What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm ‘ManagementRealm’ as discovered from the existing property files.
Username : jbadmin
Password requirements are listed below. To modify these restrictions edit the add-user.properties configuration file.
– The password must not be one of the following restricted values {root, admin, administrator}
– The password must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
– The password must be different from the username
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)[ ]:
About to add user ‘jbadmin’ for realm ‘ManagementRealm’
Is this correct yes/no? yes
Added user ‘jbadmin’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt-users.propertie
s’
Added user ‘jbadmin’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-users.properties’
Added user ‘jbadmin’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt-gr
oups.properties’
Added user ‘jbadmin’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-groups
.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? no
Press any key to continue . . .

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>add-user.bat

What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm ‘ManagementRealm’ as discovered from the existing property files.
Username : controller
Password requirements are listed below. To modify these restrictions edit the add-user.properties configuration file.
– The password must not be one of the following restricted values {root, admin, administrator}
– The password must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
– The password must be different from the username
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)[ ]:
About to add user ‘controller’ for realm ‘ManagementRealm’
Is this correct yes/no? yes
Added user ‘controller’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt-users.proper
ties’
Added user ‘controller’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-users.properties

Added user ‘controller’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt
-groups.properties’
Added user ‘controller’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-gro
ups.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=”UEBzc3cwcmQ=” />
Press any key to continue . . .

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>

++++++++++++++++++++ jbdeploy/jb@depl0y for Deployer++++++++++++++++++++

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>add-user.bat

What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm ‘ManagementRealm’ as discovered from the existing property files.
Username : jbdeploy
Password requirements are listed below. To modify these restrictions edit the add-user.properties configuration file.
– The password must not be one of the following restricted values {root, admin, administrator}
– The password must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
– The password must be different from the username
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)[ ]:
About to add user ‘jbdeploy’ for realm ‘ManagementRealm’
Is this correct yes/no? yes
Added user ‘jbdeploy’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt-users.properti
es’
Added user ‘jbdeploy’ to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-users.properties’
Added user ‘jbdeploy’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\standalone\configuration\mgmt-g
roups.properties’
Added user ‘jbdeploy’ with groups to file ‘D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration\mgmt-group
s.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? no
Press any key to continue . . .

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>

Related Posts

One thought on “Creating User’s in JBOSS

Leave a Reply

Your email address will not be published. Required fields are marked *