Trying to use this code to connect the AD
PrincipalContext context = new PrincipalContext(ContextType.Domain, domain)
but i got the error saying:
The LDAP server is unavailable.
Any idea?
The reason "Connect error" means that Pexip Infinity cannot verify the LDAP server's certificate. Ensure that the LDAP server's TLS certificate (or the CA certificate that signed it, if it is not self-signed) is in the Pexip Infinity trust store (Platform > Trusted CA certificates).
Cannot contact LDAP Server: If you receive a "Cannot connect to the LDAP Server" error message, try to connect using the LDAP Server IP address. You should also check to be sure the LDAP machine is running. Another possibility is that the SSL certificate files are not valid.
The questions is: do you specify our domain as
To my surprise, the Domain name must be in DNS format (e.g. "mydomain.com") in order for this to work (and NOT in the usual AD-style format of "dc=mydomain,dc=com").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With