Skip to content
Snippets Groups Projects
Commit aa3973d3 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: user exists check on getHome, otherwise check will be performed with...

LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup.
parent 0f4e02b6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment