Verified Commit fea543fd authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: (ldap) - restore_error_handler

restore_error_hanlder
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -1197,6 +1197,8 @@ class LDAP
function dn_exists ($dn): bool
{
// Previous error handler create issue with ldap_read - restoring default behavior.
restore_error_handler();
logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, '', 'dn_exists('.$dn.')');
return (@ldap_read($this->cid, $dn, '(objectClass=*)', ['objectClass']) !== FALSE);
}
......
Supports Markdown
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