From ce5a4e5b6696efffa911c15cc7e2789cf504ad2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 1 Aug 2023 11:41:56 +0200 Subject: [PATCH] Always empty cache before updating a group MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Command/CheckGroup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/user_ldap/lib/Command/CheckGroup.php b/apps/user_ldap/lib/Command/CheckGroup.php index 8617b06c57f..91faa11888c 100644 --- a/apps/user_ldap/lib/Command/CheckGroup.php +++ b/apps/user_ldap/lib/Command/CheckGroup.php @@ -89,6 +89,7 @@ class CheckGroup extends Command { if ($exists === true) { $output->writeln('The group is still available on LDAP.'); if ($input->getOption('update')) { + $this->backend->getLDAPAccess($gid)->connection->clearCache(); $this->updateGroup($gid, $output, $wasMapped); } return 0; -- 2.39.5