When trying to add a vCenter to a Domain it fails with "Idm client exception: Error trying to Join AD , error code [31] "
vCenter 7.0
If there is a difference in time between the host and vCenter of greater then 5 minutes then authentication will fail and the vCenter will fail to join the domain
Review the time on the host and vCenter and confirm that they are the same
For ESXi host and vCenter the command below can be run in an SSH Session to verify the time:
# date
To set the time manually on the host, follow the steps bellow:
Verify that the NTP and the PTP configurations are not used on the host.
Once the host and vCenter times align try to join the domain once more
Once the vCenter is joined to the domain NTP/ PTP can be reconfigured once more
Configure the Date and Time on a Host Manually