summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/user_ldap.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-02-16 02:06:45 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-02-16 02:06:45 +0100
commitbef48bad8b83b2826d6eb3397e3f22e8d20ba5f3 (patch)
tree90bc8d811f6a132c86a5caf173a66dec03cc2f6d /apps/user_ldap/user_ldap.php
parent83f0c8ce613eca5c384cec75c9657a95038cb90b (diff)
downloadnextcloud-server-bef48bad8b83b2826d6eb3397e3f22e8d20ba5f3.tar.gz
nextcloud-server-bef48bad8b83b2826d6eb3397e3f22e8d20ba5f3.zip
LDAP: announce that OC_USER_BACKEND_GET_DISPLAYNAME is implemented, fixes #1727
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r--apps/user_ldap/user_ldap.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index 7778c37c794..50effd79c1f 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -221,7 +221,7 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
$this->connection->ldapUserDisplayName);
if($displayName && (count($displayName) > 0)) {
- $this->connection->writeToCache($cacheKey, $displayName);
+ $this->connection->writeToCache($cacheKey, $displayName[0]);
return $displayName[0];
}
@@ -258,7 +258,10 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
* compared with OC_USER_BACKEND_CREATE_USER etc.
*/
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);
}
/**