From c08ddecd3257223d4a7957286debdd90b2f78141 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Mon, 28 Oct 2024 15:37:17 +0100 Subject: [PATCH] server: Fix missing lowercasing when changing passwords through LDAP --- server/src/infra/ldap_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/ldap_handler.rs b/server/src/infra/ldap_handler.rs index a381737..0a79f33 100644 --- a/server/src/infra/ldap_handler.rs +++ b/server/src/infra/ldap_handler.rs @@ -345,7 +345,7 @@ impl LdapHandler { match get_user_id_from_distinguished_name( - user, + &user.to_ascii_lowercase(), &self.ldap_info.base_dn, &self.ldap_info.base_dn_str, ) {