From ee7f9c9f4174dc2bec2e2e95057efe0d2e7e95e7 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Fri, 16 Aug 2024 23:19:09 +0200 Subject: [PATCH] server: Update ldap3_proto dependency --- Cargo.lock | 4 ++-- server/Cargo.toml | 2 +- server/src/infra/ldap_server.rs | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f2f9bcb..555579f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2375,9 +2375,9 @@ dependencies = [ [[package]] name = "ldap3_proto" -version = "0.4.3" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a29eca0a9fef365d6d376a1b262e269a17b1c8c6de2cee76618642cd3c923506" +checksum = "86e00102210e670682f609534b688570ad69820c50608e88a33c17d57356d77a" dependencies = [ "base64 0.21.0", "bytes", diff --git a/server/Cargo.toml b/server/Cargo.toml index 3bb842d..6a4c98b 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -35,7 +35,7 @@ itertools = "0.10" juniper = "0.15" jwt = "0.16" lber = "0.4.1" -ldap3_proto = "^0.4.3" +ldap3_proto = "^0.5.1" log = "*" orion = "0.17" rand_chacha = "0.3" diff --git a/server/src/infra/ldap_server.rs b/server/src/infra/ldap_server.rs index 6cefcc8..1b2305c 100644 --- a/server/src/infra/ldap_server.rs +++ b/server/src/infra/ldap_server.rs @@ -33,6 +33,11 @@ where { use futures_util::SinkExt; let msg = msg.context("while receiving LDAP op")?; + for control in msg.ctrl.iter() { + if let LdapControl::Unknown { oid, .. } = control { + info!("Received unknown control: {}, ignoring", oid); + } + } debug!(?msg); match session.handle_ldap_message(msg.op).await { None => return Ok(false),