* AD Import: import was not correctly taking into account primaryGroup of users

This commit is contained in:
ralf 2024-04-25 10:38:02 +02:00
parent 96f9d59e50
commit 01b201a042

View File

@ -828,7 +828,10 @@ class Import
if (is_a($this->accounts, Ads::class)) if (is_a($this->accounts, Ads::class))
{ {
// ADS::members() calls the frontend, have to use ADS::getMembers() instead // 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 else
{ {