diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-19 13:15:50 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-19 13:15:50 +0100 |
commit | 2d647973202151c12a3bd5f0396657212b1f7b7f (patch) | |
tree | e8c775f5b0ece150818a78540edd7abbd6d87274 /apps/user_ldap | |
parent | 678642a6a274610dc62f627d43be9ca42286858a (diff) | |
parent | 6da33e1ea7bb340e22330941d2a980a1414210b0 (diff) | |
download | nextcloud-server-2d647973202151c12a3bd5f0396657212b1f7b7f.tar.gz nextcloud-server-2d647973202151c12a3bd5f0396657212b1f7b7f.zip |
Merge pull request #12956 from owncloud/jenkins-user-backend-names
[jenkins only] introduce names for user backends - IUserBackend
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 11 | ||||
-rw-r--r-- | apps/user_ldap/user_proxy.php | 10 |
2 files changed, 19 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 6c7db662ffb..482715b3686 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -27,7 +27,7 @@ namespace OCA\user_ldap; use OCA\user_ldap\lib\BackendUtility; -class USER_LDAP extends BackendUtility implements \OCP\UserInterface { +class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserInterface { /** * checks whether the user is allowed to change his avatar in ownCloud * @param string $uid the ownCloud user name @@ -299,4 +299,13 @@ class USER_LDAP extends BackendUtility implements \OCP\UserInterface { $this->access->connection->writeToCache($cacheKey, $entries); return $entries; } + + /** + * Backend name to be shown in user management + * @return string the name of the backend to be shown + */ + public function getBackendName(){ + return 'LDAP'; + } + } diff --git a/apps/user_ldap/user_proxy.php b/apps/user_ldap/user_proxy.php index fa4d6939303..6414a048071 100644 --- a/apps/user_ldap/user_proxy.php +++ b/apps/user_ldap/user_proxy.php @@ -25,7 +25,7 @@ namespace OCA\user_ldap; use OCA\user_ldap\lib\ILDAPWrapper; -class User_Proxy extends lib\Proxy implements \OCP\UserInterface { +class User_Proxy extends lib\Proxy implements \OCP\IUserBackend, \OCP\UserInterface { private $backends = array(); private $refBackend = null; @@ -118,6 +118,14 @@ class User_Proxy extends lib\Proxy implements \OCP\UserInterface { } /** + * Backend name to be shown in user management + * @return string the name of the backend to be shown + */ + public function getBackendName() { + return $this->refBackend->getBackendName(); + } + + /** * Get a list of all users * @return string[] with all uids * |