From 2f4f427d9eb7788ae2589f5629a28e75e3a7bf55 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Oct 2012 16:25:09 +0200 Subject: [PATCH] Fix: ldap errors --- htdocs/core/class/ldap.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 9e06d62ff74..568b2a335f3 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -909,7 +909,9 @@ class Ldap if (is_array($attributeArray)) { // 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).")"); + //var_dump($attributeArray); $this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray); } else