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

LDAP: announce that OC_USER_BACKEND_GET_DISPLAYNAME is implemented, fixes #1727

parent 83f0c8ce
Branches
No related tags found
No related merge requests found
...@@ -221,7 +221,7 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { ...@@ -221,7 +221,7 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
$this->connection->ldapUserDisplayName); $this->connection->ldapUserDisplayName);
if($displayName && (count($displayName) > 0)) { if($displayName && (count($displayName) > 0)) {
$this->connection->writeToCache($cacheKey, $displayName); $this->connection->writeToCache($cacheKey, $displayName[0]);
return $displayName[0]; return $displayName[0];
} }
...@@ -258,7 +258,10 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { ...@@ -258,7 +258,10 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
* compared with OC_USER_BACKEND_CREATE_USER etc. * compared with OC_USER_BACKEND_CREATE_USER etc.
*/ */
public function implementsActions($actions) { public function implementsActions($actions) {
return (bool)((OC_USER_BACKEND_CHECK_PASSWORD | OC_USER_BACKEND_GET_HOME) & $actions); return (bool)((OC_USER_BACKEND_CHECK_PASSWORD
| OC_USER_BACKEND_GET_HOME
| OC_USER_BACKEND_GET_DISPLAYNAME)
& $actions);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment