1 unstable release
0.1.0 | Feb 6, 2023 |
---|
#29 in #ldap
7KB
100 lines
Ldapico
Wrapper over ldap3 for use with tarantool-module.
View the examples directory on how to create a function for use with tarantool-module.
Simple example
use ldapico::Ldap;
use tokio::sync::oneshot::channel;
fn main() {
let ldap = Ldap::new("ldap://127.0.0.1:389");
let (tx, rx) = channel();
ldap.simple_bind(tx, "cn=user1,ou=users,dc=example,dc=org", "pwd1");
let result = rx.blocking_recv().unwrap().unwrap();
assert!(result.success().is_ok());
}
Dependencies
~7–16MB
~201K SLoC