To resolve this issue, unlock the account in question on the NSX-T Manager nodes, synchronize the credentials between NSX-T and SDDC Manager, and restore the default security policies.
Step 1: Unlock Account and Disable Lockout Policy
- Log in to each NSX-T Manager node via SSH using the admin credentials.
- Reset the admin account lockout counter:
Note: Need to switch to root user using "st en" and use the root user password to run the following command.
/usr/sbin/faillock --user <username> --reset
Note: The <username> will be either root, admin, audit, or the name of the service account that has become locked. - Temporarily disable the API lockout policy. This allows synchronization to occur without triggering further lockouts:
Notes:- Need to switch back to admin user with "su admin" to run the following commands.
- Need to run the below commands on any one of the NSX nodes and those DB values will replicate to the other nodes. Replication should complete within a couple minutes.
set auth-policy api lockout-period 0
set auth-policy api lockout-reset-period 0 - On each NSX node run the following commands to confirm the status is now "disabled" for the two configurations.
get auth-policy api lockout-period
get auth-policy api lockout-reset-period
Step 2: Synchronize Passwords
Choose one of the following methods to synchronize the credentials.
Note: If the password listed in SDDC manager DB for the "admin" user works to log into the NSX nodes, there is no need to update (change) the password.
Method 1: Update the NSX-T password to match the SDDC Manager database
- Retrieve the current database password by running the lookup_passwords command on the SDDC Manager appliance.
- On the NSX-T Manager node, update the admin, audit or root password to match the retrieved database password:
set user <user> password. - Confirm login with the new password, and confirm the account's password-change and expiration information. If the account's expiration policy was altered, restore it, for example to 90 days.
Method 2: Update the SDDC Manager database to match a new password
Prerequisite: Take a snapshot of the SDDC Manager virtual machine before proceeding with this method.
- Log in to the SDDC Manager appliance as root via SSH.
- Generate an API token (replace <sso username> and <sso password> with your actual SSO administrator credentials):
TOKEN=$(curl -d '{"username" : "<sso username>", "password" : "<sso password>"}' -H "Content-Type: application/json" -X POST http://127.0.0.1/v1/tokens | jq -r '.accessToken')
- Query the system for the NSX-T API credentials to locate its ID:
curl -X GET 'localhost/v1/system/credentials?entityType=NSXT_MANAGER&credentialType=API' -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"
- Push the new password into the SDDC Manager database (replace <id from above step> and <new password> with the actual values):
curl -X PUT 'localhost/v1/system/credentials/<id from above step>' -d '<new password>' -H "Content-type:application/json" -H "Authorization: Bearer $TOKEN" | json_pp
Step 3: Finalize and Remediate
- Perform a rolling reboot of all NSX-T Manager nodes. This clears any active sessions and cached authentication states.
- Log in to the NSX Manager UI and verify that the NSX cluster is stable and healthy.
- Log in to the SDDC Manager UI and navigate to
Security > Password Management.
- Run the REMEDIATE operation for the user accounts that were updated.
Enter the verified current admin password and wait for successful completion.
Repeat for audit using the verified audit password.
Once remediation is successful, SSH back into any one of the NSX-T Manager nodes and restore the original lockout policy values.
Note: The DB values will replicate to the other nodes. Replication should complete within a couple minutes.
set auth-policy api lockout-period 900
set auth-policy api lockout-reset-period 900