Monday, August 22, 2016

Changing User Passwords In WSO2 ESB.

In this blog, I will explain the way to change the password [1] of the WSO2 ESB (or User Passwords in the Carbon Database). Here I used ESB 4.9.0 version.

What you need to do is run the chpasswd script inside the <PRODUCT_HOME>/bin/ directory.
For an example, I need to change the admin password. So I pass the "username" command line argument also. If we do not provide these as command line arguments, it will be prompted for it during the execution time.

These are the steps you need to follow.

1. Extract the fresh ESB 4.9.0 instance.
2. Start the server.
3. Shutdown the server.
4. Run the below command and set the new password.
  • For Linux: ./chpasswd.sh --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
  • For Windows: chpasswd.bat --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
5. Start the server.
6. Login from the new password and it will log you into the Management Console.

Reference: