summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-09 10:21:45 +0200
committerGitHub <noreply@github.com>2020-06-09 10:21:45 +0200
commit959a0be4aa10669f9f48b037f8850f43871d5413 (patch)
treef2885174964a3910d44352d8a22594f1fb81e0e4
parent57ed51983943dda338c01f2d7a7c7d2b19e6bd69 (diff)
parent4edf8630c468430b72a1aac84504d8c932abee48 (diff)
downloadnextcloud-server-959a0be4aa10669f9f48b037f8850f43871d5413.tar.gz
nextcloud-server-959a0be4aa10669f9f48b037f8850f43871d5413.zip
Merge pull request #21318 from nextcloud/fix/noid/user-delete-clear-ldap-cache
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;
}