Commit f9ac688f authored by chealer's avatar chealer

[FIX] presumed failure to report a bind error following bind() return value change

parent ba3cd04c
......@@ -346,7 +346,7 @@ class TikiLdapLib
$this->get_user_attributes($force_reload);
// ensure we have a connection to the ldap server
if (!$this->bind()) {
if ($this->bind() != 'LDAP_SUCCESS') {
$this->add_log('ldap', 'Reuse of ldap connection failed: ' . $this->ldaplink->getMessage() . ' at line ' . __LINE__ . ' in ' . __FILE__);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment