Skip to content
Snippets Groups Projects
Commit d3207d32 authored by Graham Cole's avatar Graham Cole
Browse files

commit someone's LDAP tweak, found on the live site

parent f13ab023
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,8 @@ private $datahash=''; // hash of data field
private function ldap_getuser($ldap, $user)
{
// publically bind to find user
if (!($bind=@ldap_bind($ldap, "", ""))) {
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
if (!($bind=@ldap_bind($ldap))) {
trigger_error("LDAP bind failed", E_USER_ERROR);
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment