diff --git a/setup/inc/class.setup_cmd_ldap.inc.php b/setup/inc/class.setup_cmd_ldap.inc.php index 7684f6f8a4..203a77bca4 100644 --- a/setup/inc/class.setup_cmd_ldap.inc.php +++ b/setup/inc/class.setup_cmd_ldap.inc.php @@ -159,6 +159,9 @@ class setup_cmd_ldap extends setup_cmd $what = ($account['account_type'] == 'u' ? lang('User') : lang('Group')).' '. $account_id.' ('.$account['account_lid'].')'; + // invalidate cache: otherwise no migration takes place, if cached results says account already exists + accounts::cache_invalidate($account_id); + if ($account['account_type'] == 'u') { if ($accounts_obj->exists($account_id))