pub struct RustLDAP { /* private fields */ }
Implementations§
Source§impl RustLDAP
impl RustLDAP
Sourcepub fn new(uri: &str) -> Result<RustLDAP, &str>
pub 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.
Sourcepub fn simple_bind(&self, who: &str, pass: &str) -> Result<i64, &str>
pub 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).
pub fn simple_search( &self, base: &str, scope: i32, ) -> Result<Vec<HashMap<String, Vec<String>>>, &str>
Auto Trait Implementations§
impl Freeze for RustLDAP
impl RefUnwindSafe for RustLDAP
impl !Send for RustLDAP
impl !Sync for RustLDAP
impl Unpin for RustLDAP
impl UnwindSafe for RustLDAP
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more