From: Arthur Schiwon Date: Mon, 8 Jun 2020 15:52:43 +0000 (+0200) Subject: clear LDAP cache after user deletion X-Git-Tag: v20.0.0beta1~437^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4edf8630c468430b72a1aac84504d8c932abee48;p=nextcloud-server.git clear LDAP cache after user deletion Signed-off-by: Arthur Schiwon --- diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index c605aaad544..79f230ae00b 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; }