]> source.dussan.org Git - nextcloud-server.git/commitdiff
[Issue #9559] identifiers uid=xxx must be considered as user DN and not as owncloud...
authorPhilippe Jung <phil.jung@free.fr>
Thu, 10 Jul 2014 12:27:31 +0000 (14:27 +0200)
committerPhilippe Jung <phil.jung@free.fr>
Thu, 10 Jul 2014 12:27:31 +0000 (14:27 +0200)
apps/user_ldap/lib/user/manager.php

index 6c635518d95552f945ee3b11c38194251dc16e8c..0f17900b5f3e47bf96658213e7e05307c6d56b6e 100644 (file)
@@ -143,7 +143,8 @@ class Manager {
                        return $this->users['byUid'][$id];
                }
 
-               if(strpos(mb_strtolower($id, 'UTF-8'), 'dc=') === false) {
+               if(strpos(mb_strtolower($id, 'UTF-8'), 'dc=') === false
+                  && strpos(mb_strtolower($id, 'UTF-8'), 'uid=') === false ) {
                        //most likely a uid
                        $dn = $this->access->username2dn($id);
                        if($dn !== false) {