Merge pull request #21318 from nextcloud/fix/noid/user-delete-clear-ldap-cache

clear LDAP cache after user deletion
This commit is contained in:
Roeland Jago Douma 2020-06-09 10:21:45 +02:00 committed by GitHub
commit 959a0be4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}