ldapico

Crates.ioldapico
lib.rsldapico
version0.1.0
sourcesrc
created_at2023-02-06 13:03:46.345028
updated_at2023-02-06 13:03:46.345028
descriptionWrapper over ldap3 for use with tarantool-module
homepagehttps://git.picodata.io/picodata/picodata/ldapico
repositoryhttps://git.picodata.io/picodata/picodata/ldapico
max_upload_size
id777914
size7,911
(lowitea)

documentation

README

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());
}
Commit count: 0

cargo fmt