Change the default Admin password on the MI & MI Dashboard with the default file-based userstore
Hello, everyone! I hope you all are doing great. After a time, I wrote another short blog describing how to change the default admin password of the WSO2 Micro Integrator(MI) and MI dashboard when using the default file-based userstore.
WSO2 Micro Integrator comes with a default file-based userstore. You can add new admin or non-admin users by editing the “deployment.toml” file.
[[internal_apis.users]]
user.name = "user-1"
user.password = "pwd-1"
[[internal_apis.users]]
user.name = "user-2"
user.password = "pwd-2"
The users in this store can only access the management API and related tools (Micro Integrator dashboard/API Controller). The file-based user store only supports user authentication for the management API. However, If you want to use authentication for integration use cases or authorization, or you have a large set of users, then you need to change the default userstore to LDAP or RDBMS userstores. If you don’t have such a requirement, you can keep the default file-based userstore on the MI and MI dashboard.
The default admin user password is “admin, " and we used that to log in to the MI dashboard. Yet, you may need to change this default admin’s password to a new & strong one. Then, you should follow the steps below to change the default admin password on MI and MI Dashboard when using the file-based userstore.
- Open the “deployment.toml” file of the Micro Integrator node.
- Add the below configuration to change the password of the “admin” user.
[[internal_apis.users]]
user.name = "admin"
user.password = "NEW_PASSWORD"
user.is_admin = true
- Save the file
- Then open the “deployment.toml” file of the MI Dashboard
- Configure the new admin password under the following config section.
[mi_user_store]
username = "admin"
password = "NEW_PASSWORD"
- Save the file
- Finally, restart both MI and MI dashboard nodes. You can start the MI node first and the MI Dashboard second.
- To verify the change, you can log in to the MI Dashboard with the old and new admin passwords. It will allow only login into the dashboard with the new admin’s password.
So, let’s give it a try, and let me know your feedback.
Let’s meet soon again … bye bye ❤ ❤ ❤