ldap3 0.12.1

Pure-Rust LDAP Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Demonstrates TLS connection to an IP address.

use ldap3::result::Result;
use ldap3::{LdapConn, LdapConnSettings};

fn main() -> Result<()> {
    let mut ldap = LdapConn::with_settings(
        LdapConnSettings::new().set_no_tls_verify(true),
        "ldaps://127.0.0.1:2636",
    )?;
    Ok(ldap.unbind()?)
}