mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 10:46:30 +00:00
Remove remaining LDAP stuff
This commit is contained in:
@@ -64,20 +64,6 @@ where
|
|||||||
write_all(stream, auth_ok).await
|
write_all(stream, auth_ok).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tell the client to use clearr text auth
|
|
||||||
pub async fn clear_text_challenge<S>(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.
|
/// Generate md5 password challenge.
|
||||||
pub async fn md5_challenge<S>(stream: &mut S) -> Result<[u8; 4], Error>
|
pub async fn md5_challenge<S>(stream: &mut S) -> Result<[u8; 4], Error>
|
||||||
where
|
where
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ RUN apt-get update && apt-get install llvm-11 psmisc postgresql-contrib postgres
|
|||||||
RUN cargo install cargo-binutils rustfilt
|
RUN cargo install cargo-binutils rustfilt
|
||||||
RUN rustup component add llvm-tools-preview
|
RUN rustup component add llvm-tools-preview
|
||||||
RUN sudo gem install bundler
|
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 && \
|
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
|
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 && \
|
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 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user