aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2025-04-17 17:00:31 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-04-22 07:25:02 +0000
commitfa38ae46f46f6f02ad7e1fed129fe9ef018ee944 (patch)
treeec66b78cacb7d1ed9e9bc8aafe0b7762333fca5b
parent412049385609a90405637a15c6bdccca0af05f77 (diff)
downloadnextcloud-server-backport/52257/stable31.tar.gz
nextcloud-server-backport/52257/stable31.zip
fix(LDAP): inlcude ldapExpertUsernameAttr in general attribute listbackport/52257/stable31
fixes corner cases in which an LDAP record might be loaded and used, where the user is still not mapped - and then this information is missing though expected. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/User/Manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php
index 125970de1e7..88a001dd965 100644
--- a/apps/user_ldap/lib/User/Manager.php
+++ b/apps/user_ldap/lib/User/Manager.php
@@ -109,6 +109,7 @@ class Manager {
$baseAttributes = array_merge(Access::UUID_ATTRIBUTES, ['dn', 'uid', 'samaccountname', 'memberof']);
$attributes = [
$this->access->getConnection()->ldapExpertUUIDUserAttr,
+ $this->access->getConnection()->ldapExpertUsernameAttr,
$this->access->getConnection()->ldapQuotaAttribute,
$this->access->getConnection()->ldapEmailAttribute,
$this->access->getConnection()->ldapUserDisplayName,