From: iarenaza Date: Mon, 17 Sep 2007 21:30:20 +0000 (+0000) Subject: MDL-11299 - Make objectClass string comparison case insensitive. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb4e530b933a9403389e5c07a186a6cd1ce1c49b;p=moodle.git 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. --- 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; }