Function ldap_search

Source
pub async fn ldap_search<'a, S: AsRef<str> + Clone + Display + Debug + Send + Sync>(
    ldap: &mut Ldap,
    base: &str,
    scope: Scope,
    filter: &str,
    attrs: Vec<S>,
) -> Result<Box<dyn Iterator<Item = SearchEntry> + 'a>, LdapOperationError>
Expand description

perform an LDAP search via ldap3, logging a proper error message if it fails and returning an iterator to already unwrapped search entries