diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-05 08:49:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 08:49:43 +0100 |
commit | 54cffefed47f7688800dbbb0d2115ddff02ebbef (patch) | |
tree | df707ce13120ac23532370ecf5ead6173b0916a0 /apps/user_ldap/lib | |
parent | e6ef096e520c512064db3448696c7a3ab8f47147 (diff) | |
parent | 2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (diff) | |
download | nextcloud-server-54cffefed47f7688800dbbb0d2115ddff02ebbef.tar.gz nextcloud-server-54cffefed47f7688800dbbb0d2115ddff02ebbef.zip |
Merge pull request #25660 from hosting-de/feature/add-backend-list-groups
Show group backends in occ group:list --info and group:info
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/Group_Proxy.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Group_Proxy.php b/apps/user_ldap/lib/Group_Proxy.php index 490eab44462..0078f0803c0 100644 --- a/apps/user_ldap/lib/Group_Proxy.php +++ b/apps/user_ldap/lib/Group_Proxy.php @@ -28,9 +28,10 @@ namespace OCA\User_LDAP; +use OCP\Group\Backend\INamedBackend; use OCP\Group\Backend\IGetDisplayNameBackend; -class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGetDisplayNameBackend { +class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGetDisplayNameBackend, INamedBackend { private $backends = []; private $refBackend = null; @@ -298,4 +299,13 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet public function getDisplayName(string $gid): string { return $this->handleRequest($gid, 'getDisplayName', [$gid]); } + + /** + * Backend name to be shown in group management + * @return string the name of the backend to be shown + * @since 22.0.0 + */ + public function getBackendName(): string { + return 'LDAP'; + } } |