mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
server: Fix missing lowercasing when changing passwords through LDAP
This commit is contained in:
committed by
nitnelave
parent
4ebfd0525b
commit
c08ddecd32
@@ -345,7 +345,7 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
|
|||||||
match (&request.user_identity, &request.new_password) {
|
match (&request.user_identity, &request.new_password) {
|
||||||
(Some(user), Some(password)) => {
|
(Some(user), Some(password)) => {
|
||||||
match get_user_id_from_distinguished_name(
|
match get_user_id_from_distinguished_name(
|
||||||
user,
|
&user.to_ascii_lowercase(),
|
||||||
&self.ldap_info.base_dn,
|
&self.ldap_info.base_dn,
|
||||||
&self.ldap_info.base_dn_str,
|
&self.ldap_info.base_dn_str,
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user