summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-09 19:29:28 +0200
committerGitHub <noreply@github.com>2020-06-09 19:29:28 +0200
commit3b404a8a04067b8c2cc94d86e070f57ac6780140 (patch)
tree0509897f543f5549ab91f1c263f6d9471f48de90
parentb20b92441e84a35f36fd770926a2866ce0f34a8f (diff)
parent5b63593956385cabe6eda427180da8ce1ddf4332 (diff)
downloadnextcloud-server-3b404a8a04067b8c2cc94d86e070f57ac6780140.tar.gz
nextcloud-server-3b404a8a04067b8c2cc94d86e070f57ac6780140.zip
Merge pull request #21333 from nextcloud/backport/21318/stable19
[stable19] clear LDAP cache after user deletion
-rw-r--r--apps/user_ldap/lib/User_LDAP.php1
1 files changed, 1 insertions, 0 deletions
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;
}