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

LDAP: check for always available attribute on userExists, fixes oc-1440

parent c3cbb463
No related branches found
No related tags found
No related merge requests found
...@@ -127,9 +127,9 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { ...@@ -127,9 +127,9 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
return false; return false;
} }
//if user really still exists, we will be able to read his cn //if user really still exists, we will be able to read his objectclass
$cn = $this->readAttribute($dn, 'cn'); $objcs = $this->readAttribute($dn, 'objectclass');
if(!$cn || empty($cn)) { if(!$objcs || empty($objcs)) {
$this->connection->writeToCache('userExists'.$uid, false); $this->connection->writeToCache('userExists'.$uid, false);
return false; return false;
} }
......
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