From bb4e530b933a9403389e5c07a186a6cd1ce1c49b Mon Sep 17 00:00:00 2001 From: iarenaza Date: Mon, 17 Sep 2007 21:30:20 +0000 Subject: [PATCH] MDL-11299 - Make objectClass string comparison case insensitive. LDAP serves accept attribute names in a case insensitive way, so don't force the users to use any particular spelling. --- auth/ldap/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 7e886b0c23..156f7a043e 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -56,7 +56,7 @@ class auth_plugin_ldap extends auth_plugin_base { //hack prefix to objectclass if (empty($this->config->objectclass)) { // Can't send empty filter $this->config->objectclass='objectClass=*'; - } else if (strpos($this->config->objectclass, 'objectClass=') !== 0) { + } else if (stripos($this->config->objectclass, 'objectClass=') !== 0) { $this->config->objectclass = 'objectClass='.$this->config->objectclass; } -- 2.39.5