Merge pull request #23121 from Humml87/16.0_Fix_#23120_LDAP_dol_syslog_argument
Fix #23120 dol_syslog argument bug.
This commit is contained in:
commit
f83102f99c
@ -1058,12 +1058,12 @@ 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)
|
$attributeArray = array_values($attributeArray); // This is to force to have index reordered from 0 (not make ldap_search fails)
|
||||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter." attributeArray=(".join(',', $attributeArray).")");
|
dol_syslog(get_class($this)."::getRecords connection=".$this->connectedServer.":".$this->serverPort." userDn=".$userDn." filter=".$filter." attributeArray=(".join(',', $attributeArray).")");
|
||||||
//var_dump($attributeArray);
|
//var_dump($attributeArray);
|
||||||
$this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray);
|
$this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray);
|
||||||
} else {
|
} else {
|
||||||
// Return list with fields selected by default
|
// Return list with fields selected by default
|
||||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter);
|
dol_syslog(get_class($this)."::getRecords connection=".$this->connectedServer.":".$this->serverPort." userDn=".$userDn." filter=".$filter);
|
||||||
$this->result = @ldap_search($this->connection, $userDn, $filter);
|
$this->result = @ldap_search($this->connection, $userDn, $filter);
|
||||||
}
|
}
|
||||||
if (!$this->result) {
|
if (!$this->result) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user