From d8ccf4babb07ba3904175219c6eecbad92d4fd6c Mon Sep 17 00:00:00 2001 From: CommanderKeynes Date: Tue, 10 Sep 2024 06:23:25 -0500 Subject: [PATCH] Remove remaining LDAP stuff --- src/messages.rs | 14 -------------- tests/docker/Dockerfile | 2 -- 2 files changed, 16 deletions(-) diff --git a/src/messages.rs b/src/messages.rs index 21aeeb8..6a114e1 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -64,20 +64,6 @@ where write_all(stream, auth_ok).await } -/// Tell the client to use clearr text auth -pub async fn clear_text_challenge(stream: &mut S) -> Result<(), Error> -where - S: tokio::io::AsyncWrite + std::marker::Unpin, -{ - let mut auth_clear_text = BytesMut::with_capacity(9); - - auth_clear_text.put_u8(b'R'); - auth_clear_text.put_i32(8); - auth_clear_text.put_i32(3); - - write_all(stream, auth_clear_text).await -} - /// Generate md5 password challenge. pub async fn md5_challenge(stream: &mut S) -> Result<[u8; 4], Error> where diff --git a/tests/docker/Dockerfile b/tests/docker/Dockerfile index 553dd61..6eccddd 100644 --- a/tests/docker/Dockerfile +++ b/tests/docker/Dockerfile @@ -6,8 +6,6 @@ RUN apt-get update && apt-get install llvm-11 psmisc postgresql-contrib postgres RUN cargo install cargo-binutils rustfilt RUN rustup component add llvm-tools-preview RUN sudo gem install bundler -RUN wget -O /usr/bin/glauth https://github.com/glauth/glauth/releases/download/v2.3.2/glauth-linux-amd64 -RUN chmod +x /usr/bin/glauth RUN wget -O toxiproxy-2.4.0.deb https://github.com/Shopify/toxiproxy/releases/download/v2.4.0/toxiproxy_2.4.0_linux_$(dpkg --print-architecture).deb && \ sudo dpkg -i toxiproxy-2.4.0.deb RUN wget -O go1.21.3.linux-$(dpkg --print-architecture).tar.gz https://go.dev/dl/go1.21.3.linux-$(dpkg --print-architecture).tar.gz && \