Need to make sure that we have the LDAP version set.
Add
ldap_set_option($aldapConn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3);
to the code.
Logged In: YES user_id=1072758
See http://forums.devshed.com/archive/t-123443 for more information.
Logged In: NO
Add this: >>> if (!ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3)) { message_die(GENERAL_ERROR, 'Could not set LDAPv3.', '', __LINE__, __FILE__, ''); } <<< before >>> if ($board_config["ldap_proxy_dn"] != "") { $bind = ldap_bind($connection, $board_config["ldap_proxy_dn"], $board_config ["ldap_proxy_dn_pass"]); } <<<
Log in to post a comment.
Logged In: YES
user_id=1072758
See http://forums.devshed.com/archive/t-123443 for more
information.
Logged In: NO
Add this:
>>>
if (!ldap_set_option($connection,
LDAP_OPT_PROTOCOL_VERSION, 3)) {
message_die(GENERAL_ERROR, 'Could
not set LDAPv3.', '', __LINE__, __FILE__, '');
}
<<<
before
>>>
if ($board_config["ldap_proxy_dn"] != "") {
$bind = ldap_bind($connection,
$board_config["ldap_proxy_dn"], $board_config
["ldap_proxy_dn_pass"]);
}
<<<