server: update ldap3_proto dependency
This will fix the issue with some unhandled controls
This commit is contained in:
committed by
nitnelave
parent
dc140f1675
commit
337101edea
@@ -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"]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user