vCenter Server root account lockout due to repeated authentication failures
search cancel

vCenter Server root account lockout due to repeated authentication failures

book

Article ID: 325052

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite) VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • The vCenter Server root account lockout occurs frequently where the vCenter Server SSH and vCenter Server Appliance Management Interface (VAMI) login using the root user fails with an incorrect username and password error.

  • Repeated PAM authentication failure entries appear in /var/log/vmware/messages in vCenter Server.

YYYY-MM-DDTHH:MM:SS.###Z python: PAM 1 more authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
YYYY-MM-DDTHH:MM:SS.###Z sshd-session [2593689] : pam unix (sshd:auth) : authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=IP_ADDRESS user=root
YYYY-MM-DDTHH:MM:SS.###Z python: pam_unix (passwd:auth) : authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
YYYY-MM-DDTHH:MM:SS.###Z python: PAM 1 more authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root

  • IP address utilizing the root account can also be located in /var/log/vmware/vapi/endpoint/endpoint-access.log in the vCenter server

YYYY-MM-DDTHH:MM:SS.###Z | jetty-default-2593    | Invoking operation create from service com.vmware.cis.session with id [SESSION_ID]
YYYY-MM-DDTHH:MM:SS.###Z | sso2           | IP_ADDRESS - - [DD/MMM/YYYY:HH:MM:SS+0000] "POST /rest/com/vmware/cis/session HTTP/1.1" 200 44 "-" "Java/11.0.18" 112
YYYY-MM-DDTHH:MM:SS.###Z | jetty-default-2421    | Invoking operation create from service com.vmware.cis.session with id [SESSION_ID]
YYYY-MM-DDTHH:MM:SS.###Z | sso5           | IP_ADDRESS- - [DD/MMM/YYYY:HH:MM:SS +0000] "POST /rest/com/vmware/cis/session HTTP/1.1" 401 573 "-" "Java/11.0.18" 23

Environment

  • VMware vCenter Server 8.x

  • VMware vCenter Server 9.x

Cause

External applications continuously attempt to poll vCenter Server using the root or SSO administrator credentials. When administrators update the vCenter passwords but fail to update the integrated applications with the new credentials, these applications continue to poll or log in with invalid credentials. These continuous authentication failure events trigger a rapid vCenter root account lockout to protect the vCenter Server.

Resolution

  1. Locate the source IP address of the failed login attempts from the identified logs.

  2. Update credentials on the corresponding application or node to match the current vCenter Server root password.

  3. Access the vCenter Server virtual machine web console where root user login remains functional and run the following command to clear the lockout status: 

    /usr/sbin/faillock --user root --reset