Permalink
Browse files

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.
  • Loading branch information...
1 parent e1b1f33 commit bb4e530b933a9403389e5c07a186a6cd1ce1c49b iarenaza committed Sep 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/auth.php
View
@@ -56,7 +56,7 @@ function auth_plugin_ldap() {
//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;
}

0 comments on commit bb4e530

Please sign in to comment.