#ldap #tarantool #tarantool-module #picodata

ldapico

Wrapper over ldap3 for use with tarantool-module

1 unstable release

0.1.0 Feb 6, 2023

#15 in #tarantool

28 downloads per month

BSD-2-Clause

7KB
100 lines

Ldapico

Latest Version Docs badge

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–18MB
~234K SLoC