* 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 e895947a02
commit e9dec0d5fc

View File

@ -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
{