How to reset password of admin console in JBoss EAP 6/7 ?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Issue

  • How to reset the password of the admin console in JBoss EAP 6?
  • Our internal support team was replaced and we need to reestablish the console's administration access. How to reset the JBoss EAP 7 console access password?

Resolution

Use $JBOSS_HOME/bin/add-user.sh script to overwrite existing user details. To reset login details execute the script and use the same user name but specify a different password, it will overwrite existing login details.

# ./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): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : jboss
User 'jboss' already exits, would you like to update the existing user password and roles
Is this correct yes/no? yes
...

In case of SSL is enabled for admin console, refers to the article: How to change JBoss EAP admin console password when SSL is enabled?.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments