server: update ldap3_proto dependency

This will fix the issue with some unhandled controls
This commit is contained in:
Valentin Tolmer
2024-01-08 12:47:46 +01:00
committed by nitnelave
parent dc140f1675
commit 337101edea
4 changed files with 13 additions and 6 deletions

View File

@@ -274,7 +274,14 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
Ok(s) => s,
Err(e) => return (LdapResultCode::NamingViolation, e.to_string()),
};
let LdapBindCred::Simple(password) = &request.cred;
let password = if let LdapBindCred::Simple(password) = &request.cred {
password
} else {
return (
LdapResultCode::UnwillingToPerform,
"SASL not supported".to_string(),
);
};
match self
.get_login_handler()
.bind(BindRequest {