aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User_LDAP.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-07-09 09:27:10 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-08-27 10:06:43 +0200
commitd2bc636a79a0bb0fd1939255fe69f440df171da8 (patch)
tree59f58b374b02fe2323c552fa96a9449cf094aa41 /apps/user_ldap/lib/User_LDAP.php
parent4fb1d2f3e5efd1272fa41700a489c80b1a367997 (diff)
downloadnextcloud-server-d2bc636a79a0bb0fd1939255fe69f440df171da8.tar.gz
nextcloud-server-d2bc636a79a0bb0fd1939255fe69f440df171da8.zip
fix(user_ldap): Correctly cache that user exists to avoid a request on mapping new user
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/User_LDAP.php')
-rw-r--r--apps/user_ldap/lib/User_LDAP.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php
index 1f001a33db1..b1065fcf7a7 100644
--- a/apps/user_ldap/lib/User_LDAP.php
+++ b/apps/user_ldap/lib/User_LDAP.php
@@ -463,7 +463,6 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
$this->access->connection->writeToCache($cacheKey, $displayName);
}
if ($user instanceof OfflineUser) {
- /** @var OfflineUser $user */
$displayName = $user->getDisplayName();
}
return $displayName;
@@ -610,7 +609,6 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
$uuid,
true
);
- $this->access->cacheUserExists($username);
} else {
$this->logger->warning(
'Failed to map created LDAP user with userid {userid}, because UUID could not be determined',