* AD Import: run full group import for AD, as it does not update modification time of group, when memberships change

This commit is contained in:
ralf 2023-10-24 10:00:17 +03:00
parent 883898fe50
commit f22fa015dc

View File

@ -219,7 +219,7 @@ class Import
if (in_array('groups', explode('+', $type)))
{
// for AD always do a full import, as AD seems not to update the groups modification date, if only members change
foreach($this->groups($initial_import || $type === 'ads' ? null : $GLOBALS['egw_info']['server']['account_import_lastrun'],
foreach($this->groups($initial_import || $source === 'ads' ? null : $GLOBALS['egw_info']['server']['account_import_lastrun'],
in_array('local', explode('+', $type)) ? 'no' : $delete,
$groups, $set_members, $dry_run, $sql_groups) as $name => $val)
{