← Projects

bb8-ldap

A bb8 connection manager for ldap3, so asynchronous Rust services can pool and reuse LDAP connections instead of opening a new one for every bind or lookup.

Availability

Version 0.4.1 is available on crates.io.

Details

The manager validates the URL up front, opens the connection, optionally performs a simple bind and hands it to the pool. Before a pooled connection is reused, it's checked with a configurable LDAP search; the default is a one-second root DSE lookup. Connection and validation timeouts are set separately, and bb8 controls pool sizing.

TLS is StartTLS over ldap://, with Rustls (aws-lc-rs or ring) or native TLS selected by feature flag. Implicit ldaps:// isn't supported; Unix sockets over ldapi:// are.