diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-11 16:40:41 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-11 16:40:41 +0200 |
commit | fc6793f2ae778448d1c797625149c17ed77bfcc0 (patch) | |
tree | c0078933f3b50ab7cba331e0bfb48ebe781820cd /apps/user_ldap/lib/user/manager.php | |
parent | 13d44f8f7f09b3fa641f2ea8e835d0be9bd00c49 (diff) | |
download | nextcloud-server-fc6793f2ae778448d1c797625149c17ed77bfcc0.tar.gz nextcloud-server-fc6793f2ae778448d1c797625149c17ed77bfcc0.zip |
better check whether string resembles a DN, fixes #9887
Diffstat (limited to 'apps/user_ldap/lib/user/manager.php')
-rw-r--r-- | apps/user_ldap/lib/user/manager.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/user/manager.php b/apps/user_ldap/lib/user/manager.php index 0f17900b5f3..0ed3d09c48f 100644 --- a/apps/user_ldap/lib/user/manager.php +++ b/apps/user_ldap/lib/user/manager.php @@ -143,8 +143,7 @@ class Manager { return $this->users['byUid'][$id]; } - if(strpos(mb_strtolower($id, 'UTF-8'), 'dc=') === false - && strpos(mb_strtolower($id, 'UTF-8'), 'uid=') === false ) { + if(!$this->access->stringResemblesDN($id) ) { //most likely a uid $dn = $this->access->username2dn($id); if($dn !== false) { |