diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 00:23:35 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 14:40:36 +0100 |
commit | aa3973d365a5cefccbf42bcc445d1fce6cad033e (patch) | |
tree | 0b05f53804b34a7e1b5afda590c41ee9256e89f9 /apps/user_ldap/user_ldap.php | |
parent | 0f4e02b6fcebba6e8ac53f2cb451e8751abeece7 (diff) | |
download | nextcloud-server-aa3973d365a5cefccbf42bcc445d1fce6cad033e.tar.gz nextcloud-server-aa3973d365a5cefccbf42bcc445d1fce6cad033e.zip |
LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup.
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index e3a8ba6812c..1277e074714 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -180,6 +180,11 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { * @return boolean */ public function getHome($uid) { + // user Exists check required as it is not done in user proxy! + if(!$this->userExists($uid)) { + return false; + } + $cacheKey = 'getHome'.$uid; if($this->connection->isCached($cacheKey)) { return $this->connection->getFromCache($cacheKey); |