diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-06-16 15:51:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 15:51:09 +0200 |
commit | 39f0aa5abe0867a99218b76995d114ce7b394b84 (patch) | |
tree | 15f9c02f78c746c71f4b1f70737726f7cae61d58 /lib | |
parent | 818fc95b0399b07bb41c02494292a77700b9b35a (diff) | |
parent | 04411df6950a60a371ac8a4cb175dacfcd917772 (diff) | |
download | nextcloud-server-39f0aa5abe0867a99218b76995d114ce7b394b84.tar.gz nextcloud-server-39f0aa5abe0867a99218b76995d114ce7b394b84.zip |
Merge pull request #27515 from nextcloud/enh/noid/read-multi-value-user-attribute
Add method to read multi-value attributes from ldap
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/LDAP/ILDAPProvider.php | 12 |
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; } |