diff options
Diffstat (limited to 'apps/user_ldap/lib/user/manager.php')
-rw-r--r-- | apps/user_ldap/lib/user/manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/user/manager.php b/apps/user_ldap/lib/user/manager.php index 6c635518d95..0f17900b5f3 100644 --- a/apps/user_ldap/lib/user/manager.php +++ b/apps/user_ldap/lib/user/manager.php @@ -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) { |