From 35effbcd3f7d0cb60d495241c2c2a366981787d4 Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Tue, 15 May 2012 11:12:29 +0200
Subject: [PATCH] LDAP: convert all DNs to lowercase so to make comparisons and
 everything work

---
 apps/user_ldap/lib_ldap.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index bd3dbe9534..614c6d916f 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;
 	}
 
-- 
GitLab