From d532ad1c8e9589884b5f1b074dff122fdff935a4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Sep 2022 16:53:15 +0200 Subject: [PATCH] Fix test ldap --- htdocs/core/class/ldap.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 689fbe6845e..83e3adeda93 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -1060,7 +1060,7 @@ class Ldap //print_r($info); for ($i = 0; $i < $info["count"]; $i++) { - $recordid = $this->convToOutputCharset($info[$i][$useridentifier][0], $this->ldapcharset); + $recordid = $this->convToOutputCharset($info[$i][strtolower($useridentifier)][0], $this->ldapcharset); if ($recordid) { //print "Found record with key $useridentifier=".$recordid."
\n"; $fulllist[$recordid][$useridentifier] = $recordid;