Joining vCenter to an Active Directory Domain Fails with Error: "Idm client exception: Error trying to Join AD , error code [31]"
book
Article ID: 374759
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
When trying to add a vCenter to an Active Directory Domain, it fails with an error "Idm client exception: Error trying to Join AD , error code [31] "
Environment
VMware vCenter Server 7.x
VMware vCenter Server 8.x
Cause
This issue is caused due to the time difference of more than 5 minutes between the host and the vCenter, which can lead to authentication failures and prevent the vCenter from joining the domain.
Resolution
Verify Time Consistency
Review the time settings on both the ESXi host and the vCenter Server, and confirm that they are synchronized.
To check the current time on both the ESXi host and the vCenter Server, run the following command in an SSH session:
# date
Manually Set the Time on the ESXi Host (if needed)
Prerequisites:
Ensure that NTP (Network Time Protocol) and PTP (Precision Time Protocol) are not currently enabled on the host.