From b06889aded4f544d46e1e42e0579762e8e7cfa2d Mon Sep 17 00:00:00 2001 From: irving ou Date: Mon, 18 Dec 2023 12:56:57 -0500 Subject: [PATCH] fix decode for compare request --- proto/src/proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/src/proto.rs b/proto/src/proto.rs index b0a614a..b90d6dc 100644 --- a/proto/src/proto.rs +++ b/proto/src/proto.rs @@ -1122,7 +1122,7 @@ impl TryFrom for LdapOp { LdapResult::try_from_tag(inner).map(|(lr, _)| LdapOp::ModifyDNResponse(lr)) } // https://datatracker.ietf.org/doc/html/rfc4511#section-4.1.9 - (14, PL::C(inner)) => LdapBindResponse::try_from(inner).map(LdapOp::BindResponse), + (14, PL::C(inner)) => LdapCompareRequest::try_from(inner).map(LdapOp::CompareRequest), (15, PL::C(inner)) => { LdapResult::try_from_tag(inner).map(|(lr, _)| LdapOp::CompareResult(lr)) }