Failed to connect to Active Directory, please check the configuration and try again. /opt/vmware/idm/logs/accesscontrol-service.log inside the vidb service pod:Trying to establish a connection to Active Directory hosted on: (ldap://<ldap server ip address>:389:389)Attempting to connect to Active Directory hosted on (<ldap server ip address>:389:389) and perform a bind operation with the following bindDn: (<bind user name>)Unable to establish a connection to Active Directory or perform a bind operation, please check the configuration and try again.Request failed with status_code: 400 with exception com.vmware.vidm.common.vertx.exceptions.WebApplicationException, cause: com.vmware.vidm.usergroup.model.exceptions.broker.connector.LdapDirectoryCommunicationFailureException.VMware Cloud Foundation 9.1.0
VMware Cloud Foundation 9.0.x
This issue occurs due to a configuration error during the AD/LDAP integration.
When entering the information for the primary or secondary Domain Controller, including the protocol and port number (e.g. ldap://<ldap server ip>:389) causes a conflict. VCF automatically appends the port from the dedicated "Port" field, resulting in an invalid, malformed connection string (e.g. <ldap server ip>:389:389) and eventually causing the Active Directory connection to fail.
To resolve this issue, separate the server address and the port number into their respective fields:
ldap://10.x.x.x or ldaps://<FQDN-AD-Sever>.For detailed, step-by-step instructions on setting up identity providers, please refer to:Configure Active Directory as an Identity Provider Using AD/LDAP.