Commit fa07e955 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5464 Using ldap_read instead of useless ldap_list for performance

parent ada3b288
......@@ -1011,14 +1011,11 @@ class LDAP
return $res;
}
function dn_exists($dn)
{
return @ldap_list($this->cid, $dn, "(objectClass=*)", array("objectClass"));
return @ldap_read($this->cid, $dn, "(objectClass=*)", array("objectClass"));
}
/*!
* \brief Function to imports ldifs
*
......
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