Joining the VMWare vCenter Server Appliance or VMware vRealize Automation Identity Appliance to a domain fails with the error: Error trying to join AD, error code [31]
book
Article ID: 316624
calendar_today
Updated On:
Products
VMware Aria SuiteVMware vCenter Server
Issue/Introduction
Symptoms:
Joining the vCenter Server Appliance to a Domain fails with the error:
VMware vCenter Server Appliance 6.x VMware vCenter Server Appliance 7.x VMware vCenter Server Appliance 8.x VMware vRealize Automation 6.2.x
Cause
This issue occurs when Windows 2012 uses Server Message Block version 2 (SMB2) and, by default, SMB1 is disabled.
This issue can also be seen if the AD Domain Functional Level is not supported by the version of vCenter Example: AD is Windows Server 2003 and vCenter is 6.7 - this is unsupported.
This error is also seen if there is any firewall blocks observed from vCenter to AD servers over port 445 (used for SMB protocol).
(Run command on vCenter --->: curl -v telnet://<IP-of-AD-server>:445)
Resolution
This issue is resolved in vCenter Server Appliance 6.0 Update 3c, available at Broadcom support portal
To work around this issue if you are unable to upgrade at this time, enable the SMBv1.0 by running this command from an elevated command prompt on all Windows 2012 Domain Controllers:
sc config srv start=auto
For more information on enabling and disabling SMBv1.0, see the Microsoft Knowledge Base article 2696547.
Additionally, please ensure that port 445 is open when vCenter is trying to communicate to AD server. (i.e. vCenter to AD server)