diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-15 11:12:29 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-15 11:12:29 +0200 |
commit | 35effbcd3f7d0cb60d495241c2c2a366981787d4 (patch) | |
tree | fb6a348a32015966f049784d412d23afb32b12b1 /apps/user_ldap | |
parent | 568b6a7f566d652c42bad401b520eb65b7b9e8d9 (diff) | |
download | nextcloud-server-35effbcd3f7d0cb60d495241c2c2a366981787d4.tar.gz nextcloud-server-35effbcd3f7d0cb60d495241c2c2a366981787d4.zip |
LDAP: convert all DNs to lowercase so to make comparisons and everything work
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib_ldap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index bd3dbe9534e..614c6d916f4 100644 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -524,6 +524,9 @@ class OC_LDAP { //OID sometimes gives back DNs with whitespace after the comma a la "uid=foo, cn=bar, dn=..." We need to tackle this! $dn = preg_replace('/,\s+/',',',$dn); + //make comparisons and everything work + $dn = strtolower($dn); + return $dn; } |