Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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).
commit 5d27c224dd2e1310d2d5d467c7959d3c402b8e6b 1 parent 015edfa
iarenaza authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  auth/ldap/auth.php
View
2  auth/ldap/auth.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.