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. (backported from HEAD).
  • Loading branch information...
1 parent 015edfa commit 5d27c224dd2e1310d2d5d467c7959d3c402b8e6b iarenaza committed Sep 18, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/auth.php
View
@@ -48,7 +48,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 5d27c22

Please sign in to comment.