From 6ae79bb53e68a63bb8a68d2a00e75a44df74e20a Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 27 Apr 2023 16:24:35 +0200 Subject: [PATCH] * AD/LDAP/Import: for AD always do a full import of groups, as AD seems not to update the modification date, if only members change --- 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 a7c6898c73..67c6666fc5 100644 --- a/api/src/Accounts/Import.php +++ b/api/src/Accounts/Import.php @@ -217,7 +217,8 @@ class Import $default_memberships = $default_group_id = null; if (in_array('groups', explode('+', $type))) { - foreach($this->groups($initial_import ? null : $GLOBALS['egw_info']['server']['account_import_lastrun'], + // 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'], in_array('local', explode('+', $type)) ? 'no' : $delete, $groups, $set_members, $dry_run, $sql_groups) as $name => $val) {