From 5b63593956385cabe6eda427180da8ce1ddf4332 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 8 Jun 2020 17:52:43 +0200 Subject: [PATCH] clear LDAP cache after user deletion Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/User_LDAP.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index c605aaad54..79f230ae00 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -389,6 +389,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn $this->access->getUserMapper()->unmap($uid); // we don't emit unassign signals here, since it is implicit to delete signals fired from core $this->access->userManager->invalidate($uid); + $this->access->connection->clearCache(); return true; }