summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-01 12:30:31 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-03 12:59:10 +0200
commit11f7823e1b098f907ef17e4a305efcc8a2f67a71 (patch)
tree6f8b0f3dbc3358d43c83aa76c9c6e8e3009e3246 /apps/user_ldap
parente07ebdd7d023f8bbbe187f4196f03a15ea28aa15 (diff)
downloadnextcloud-server-11f7823e1b098f907ef17e4a305efcc8a2f67a71.tar.gz
nextcloud-server-11f7823e1b098f907ef17e4a305efcc8a2f67a71.zip
precaution: lowercase string for comparison
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/user/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/user/manager.php b/apps/user_ldap/lib/user/manager.php
index 1849e86e8c8..2d235a355aa 100644
--- a/apps/user_ldap/lib/user/manager.php
+++ b/apps/user_ldap/lib/user/manager.php
@@ -137,7 +137,7 @@ class Manager {
return $this->users['byUid'][$id];
}
- if(strpos($id, 'dc=') === false) {
+ if(strpos(mb_strtolower($id, 'UTF-8'), 'dc=') === false) {
//most likely a uid
$dn = $this->access->username2dn($id);
if($dn !== false) {