summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-06-15 17:30:27 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-06-16 11:35:27 +0200
commit04411df6950a60a371ac8a4cb175dacfcd917772 (patch)
tree4cc268b6db987b4b7c50469d02696c6d8b7e8ec9 /lib/public
parenteb4e4c462b4d72833aec1f2ba4b97ffe52d1387e (diff)
downloadnextcloud-server-04411df6950a60a371ac8a4cb175dacfcd917772.tar.gz
nextcloud-server-04411df6950a60a371ac8a4cb175dacfcd917772.zip
Add method to read multi-value attributes from ldap.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/LDAP/ILDAPProvider.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/public/LDAP/ILDAPProvider.php b/lib/public/LDAP/ILDAPProvider.php
index 70cbf07b813..0355a0052c4 100644
--- a/lib/public/LDAP/ILDAPProvider.php
+++ b/lib/public/LDAP/ILDAPProvider.php
@@ -161,11 +161,17 @@ interface ILDAPProvider {
/**
* Get an LDAP attribute for a nextcloud user
- * @param string $uid the nextcloud user id to get the attribute for
- * @param string $attribute the name of the attribute to read
- * @return string|null
+ *
* @throws \Exception if user id was not found in LDAP
* @since 21.0.0
*/
public function getUserAttribute(string $uid, string $attribute): ?string;
+
+ /**
+ * Get a multi-value LDAP attribute for a nextcloud user
+ *
+ * @throws \Exception if user id was not found in LDAP
+ * @since 22.0.0
+ */
+ public function getMultiValueUserAttribute(string $uid, string $attribute): array;
}