summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-03-05 08:49:43 +0100
committerGitHub <noreply@github.com>2021-03-05 08:49:43 +0100
commit54cffefed47f7688800dbbb0d2115ddff02ebbef (patch)
treedf707ce13120ac23532370ecf5ead6173b0916a0 /apps/user_ldap/lib
parente6ef096e520c512064db3448696c7a3ab8f47147 (diff)
parent2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (diff)
downloadnextcloud-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.php12
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';
+ }
}