From 01b201a042e136df3bc49fb8e6f0c214ac5a8439 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 25 Apr 2024 10:38:02 +0200 Subject: [PATCH] * AD Import: import was not correctly taking into account primaryGroup of users --- api/src/Accounts/Import.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/Accounts/Import.php b/api/src/Accounts/Import.php index 4f4e0a55c0..7d87944fe7 100644 --- a/api/src/Accounts/Import.php +++ b/api/src/Accounts/Import.php @@ -828,7 +828,10 @@ class Import if (is_a($this->accounts, Ads::class)) { // ADS::members() calls the frontend, have to use ADS::getMembers() instead - $set_members[$sql_id] = $this->accounts->getMembers($group); + $set_members[$sql_id] = $this->accounts->getMembers([ + 'account_id' => $account_id, // must be the RID ($group['account_id'] === $sql_id!) + 'account_dn' => $group['account_dn'], + ]); } else {