Fix: ldap errors
This commit is contained in:
parent
ed456347ce
commit
2f4f427d9e
@ -909,7 +909,9 @@ class Ldap
|
|||||||
if (is_array($attributeArray))
|
if (is_array($attributeArray))
|
||||||
{
|
{
|
||||||
// Return list with required fields
|
// Return list with required fields
|
||||||
|
$attributeArray=array_values($attributeArray); // This is to force to have index reordered from 0 (not make ldap_search fails)
|
||||||
dol_syslog("Ldap::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter. " attributeArray=(".join(',',$attributeArray).")");
|
dol_syslog("Ldap::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter. " attributeArray=(".join(',',$attributeArray).")");
|
||||||
|
//var_dump($attributeArray);
|
||||||
$this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray);
|
$this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user