/var/log/vmware/sso/vmware-identity-sts.log) reveals entries similar to the following:Failed to find nested parent groups for principal: [email protected]
or
ERROR [IdentityManager] Failed to authenticate principal [[email protected]] ... LDAP query timed out during nested group expansion
This issue is caused by Active Directory token bloat. The user account attempting to log in belongs to a massive number of nested Active Directory groups.
During authentication, vCenter Server successfully connects and binds to the Domain Controller. However, before vCenter can issue a SAML token, it must recursively query Active Directory to expand and resolve every nested group the user belongs to. If the identity source is configured to search the entire domain root, the Secure Token Service (STS) may hit its maximum execution timeout before the recursive LDAP query finishes, causing the login attempt to fail.
To resolve this issue, you must reduce the LDAP query scope so vCenter does not attempt to map irrelevant nested groups across the entire Active Directory environment.
This is achieved by narrowing the Base DN (Distinguished Name) in the vCenter Single Sign-On Identity Source configuration:
[email protected]).DC=domain,DC=local) to the specific Organizational Units (OUs) that contain your vSphere administrators.OU=vSphereAdmins,OU=IT,DC=domain,DC=localBy restricting the Base DN, vCenter will only expand nested groups that exist within the specified OUs, significantly reducing the LDAP query time and preventing the STS timeout.
/var/log/vmware/sso/vmware-identity-sts.log file specifically reports LDAP error code 49, the issue is not a nested group timeout. Error 49 indicates an LDAPS bind failure (usually due to an expired LDAP service account password). For bind failures, refer to Broadcom KB 401985.