2 releases
0.1.1 | Nov 2, 2020 |
---|---|
0.1.0 | Nov 2, 2020 |
#30 in #ldap
4KB
r2d2-ldap
LDAP support for the r2d2 connection pool
Install
Add this to your Cargo.toml
:
[dependencies]
r2d2-ldap = "0.1.1"
Basic Usage
use std::thread;
use r2d2_ldap::LDAPConnectionManager;
fn main() {
let pool = r2d2::Pool::new(LDAPConnectionManager("ldap://example.org")).unwrap();
let mut ldap = pool.get().unwrap();
ldap.simple_bind("uid=john,cn=users,dc=example,dc=org", "password").unwrap();
}
License
- MIT license (LICENSE or http://opensource.org/licenses/MIT)
- This software includes the work that is distributed in the Apache License 2.0
lib.rs
:
LDAP support for the r2d2
connection pool.
Dependencies
~9–15MB
~176K SLoC