diff options
author | Johannes Leuker <j.leuker@hosting.de> | 2021-02-09 14:50:38 +0100 |
---|---|---|
committer | Johannes Leuker <j.leuker@hosting.de> | 2021-03-01 16:02:08 +0100 |
commit | 2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (patch) | |
tree | 29336019d1ad40fedae19f39ca67da5455ae2266 /apps/user_ldap | |
parent | 9fd72b0d3a4ebfad2291a18aefc51e999fbb0744 (diff) | |
download | nextcloud-server-2796ef80ff53684c6b276b054bb2d3b6039a4ef6.tar.gz nextcloud-server-2796ef80ff53684c6b276b054bb2d3b6039a4ef6.zip |
Show group backends in occ group:list --info and group:info
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
Diffstat (limited to 'apps/user_ldap')
-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'; + } } |