| Crates.io | ldapico |
| lib.rs | ldapico |
| version | 0.1.0 |
| created_at | 2023-02-06 13:03:46.345028+00 |
| updated_at | 2023-02-06 13:03:46.345028+00 |
| description | Wrapper over ldap3 for use with tarantool-module |
| homepage | https://git.picodata.io/picodata/picodata/ldapico |
| repository | https://git.picodata.io/picodata/picodata/ldapico |
| max_upload_size | |
| id | 777914 |
| size | 7,911 |
Wrapper over ldap3 for use with tarantool-module.
View the examples directory on how to create a function for use with tarantool-module.
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());
}