From 57bfb7534281ce2e87fde0bb2b2402e0e593b931 Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 19 Aug 2024 13:31:22 +0200 Subject: [PATCH] * LDAP/Import: fix not imported memberships of groups in LDAP not using their gidNumber, because it is already used as uidNumber / user --- api/src/Accounts/Import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Accounts/Import.php b/api/src/Accounts/Import.php index b64c1415ff..9385d77207 100644 --- a/api/src/Accounts/Import.php +++ b/api/src/Accounts/Import.php @@ -839,8 +839,9 @@ class Import } else { - $set_members[$sql_id] = $this->accounts->members($group['account_id']); + $set_members[$sql_id] = $this->accounts->members($account_id); } + $this->logger("Group '$group[account_lid]' members: ".json_encode($set_members[$sql_id]), 'debug'); } // delete the groups not returned from LDAP, groups can NOT be deactivated, we just delete them in the DB