After resetting the admin password on an NSX Manager node using the following commands:
1.SSH into the NSX Manager node as the root user.
2.Use the 'su admin' command to access the NSX admin command line without requiring a password.
3.Reset the admin password using the below command:
nsx-mgr> set user admin password
or reset admin password as root user using the below command:
root@nsx-mgr:/# passwd admin
When attempting to log in to the NSX Manager UI after the password reset, you may encounter the following error message:
"Your login attempt was not successful. The username/password combination is incorrect, or the account specified has been locked."
VMware NSX
Incorrect procedure performed for password reset.
In order for the password change to take effect a reset_cluster_credentials file needs to be created as per the documented process.
Resetting the Passwords of an Appliance
Workaround
Documented process for resetting of passwords needs to be followed as per Resetting the Passwords of an Appliance
The same steps are provided below:
1.Log in to the NSX Manager node using SSH as the root user.
2.Stop the NSX Manager API service
Run the following command to stop the NSX Manager API service:
/etc/init.d/nsx-mp-api-server stop
3.Reset the admin password as you would on any standard Linux system as root:
root@nsx-mgr:/# passwd admin
or as admin run the below command to change the password:
nsx-mgr> set user admin password
4.Create the reset_cluster_credentials file to trigger the necessary configuration update:
touch /var/vmware/nsx/reset_cluster_credentials
5.Restart the NSX Manager API service to apply the changes:
/etc/init.d/nsx-mp-api-server start
After completing these steps, attempt to log in to the NSX Manager UI again. The login should now be successful.