server: Fix missing lowercasing when changing passwords through LDAP

This commit is contained in:
Valentin Tolmer 2024-10-28 15:37:17 +01:00 committed by nitnelave
parent 4ebfd0525b
commit c08ddecd32

View file

@ -345,7 +345,7 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
match (&request.user_identity, &request.new_password) {
(Some(user), Some(password)) => {
match get_user_id_from_distinguished_name(
user,
&user.to_ascii_lowercase(),
&self.ldap_info.base_dn,
&self.ldap_info.base_dn_str,
) {