The task is to establish a connection to an Active Directory or Lightweight Directory Access Protocol server.

 
let conn = ldap3::LdapConn::new("ldap://ldap.example.com")?;
conn.simple_bind("bind_dn", "bind_pass")?.success()?;
 