Struct cldap::RustLDAP
[−]
[src]
pub struct RustLDAP { /* fields omitted */ }
Methods
impl RustLDAP
[src]
fn new(uri: &str) -> Result<RustLDAP, &str>
Create a new RustLDAP struct and use an ffi call to ldap_initialize to allocate and init a c LDAP struct. All of that is hidden inside of RustLDAP.
fn simple_bind(&self, who: &str, pass: &str) -> Result<i64, &str>
Perform a synchronos simple bind (ldap_simple_bind_s). The result is either Ok(LDAP_SUCCESS) or Err(ldap_err2string).
fn simple_search(
&self,
base: &str,
scope: i32
) -> Result<Vec<HashMap<String, Vec<String>>>, &str>
&self,
base: &str,
scope: i32
) -> Result<Vec<HashMap<String, Vec<String>>>, &str>