From 5b65f22415e9bbeab4883908a9d44107b56c4b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lapeyre?= Date: Fri, 20 May 2022 20:50:14 +0000 Subject: [PATCH] backport of commit a741e0de15c709795bbc12c5df7ca4fc9e48e93c --- changelog/15525.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog/15525.txt b/changelog/15525.txt index a4b23820efb55..3e44c205b18ff 100644 --- a/changelog/15525.txt +++ b/changelog/15525.txt @@ -1,3 +1,8 @@ ```release-note:bug -auth/ldap: A bug during login has been fixed when `username_as_alias` is set. +auth/ldap: The logic for setting the entity alias when `username_as_alias` is set +has been fixed. The previous behavior would make a request to the LDAP server to +get `user_attr` before discarding it and using the username instead. This would +make it impossible for a user to connect if this attribute was missing or had +multiple values, even though it would not be used anyway. This has been fixed +and the username is now used without making superfluous LDAP searches. ```