]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: convert all DNs to lowercase so to make comparisons and everything work
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 15 May 2012 09:12:29 +0000 (11:12 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 15 May 2012 09:12:29 +0000 (11:12 +0200)
apps/user_ldap/lib_ldap.php

index bd3dbe9534e905443efdc8bceef6622e37167d85..614c6d916f470e1e1ca8ef3a8f1dd729d3b7a53b 100644 (file)
@@ -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;
        }