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

@@ -35,7 +35,7 @@ itertools = "0.10"
juniper = "0.15"
jwt = "0.16"
lber = "0.4.1"
ldap3_proto = "^0.4"
ldap3_proto = "^0.4.2"
log = "*"
orion = "0.17"
rand_chacha = "0.3"
@@ -54,7 +54,7 @@ tracing-actix-web = "0.7"
tracing-attributes = "^0.1.21"
tracing-log = "*"
urlencoding = "2"
webpki-roots = "*"
webpki-roots = "0.22.2"
[dependencies.chrono]
features = ["serde"]

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 {