mirror of
https://github.com/nextcloud/server.git
synced 2026-06-27 09:30:36 -04:00
LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup.
This commit is contained in:
parent
0f4e02b6fc
commit
aa3973d365
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue