Answer the question
In order to leave comments, you need to log in
Error in LDAP bind (ldap_bind) when using SSL connection?
Good day everyone!
Faced a problem when binding to LDAP (Active Directory on a Windows 2008 server) using an SSL connection (ldaps://...).
When executing the following code:
$ldapconn = ldap_connect("ldaps://192.168.11.0/", LDAP_PORT);
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
if ($ldapconn) {
$ldapbind = ldap_bind($ldapconn, LDAP_DOMEN."\username", "passwd");
...
}
WARNING: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question