Skip to main content

LdapDirectory

Trait LdapDirectory 

Source
pub trait LdapDirectory {
    // Required methods
    fn user(
        &self,
        uid: &str,
        filter: Option<&str>,
        attributes: Option<&[String]>,
    ) -> Result<Vec<Row>>;
    fn netgroup(
        &self,
        name: &str,
        filter: Option<&str>,
        attributes: Option<&[String]>,
    ) -> Result<Vec<Row>>;
}
Expand description

Minimal LDAP lookup port used by the service layer.

Required Methods§

Source

fn user( &self, uid: &str, filter: Option<&str>, attributes: Option<&[String]>, ) -> Result<Vec<Row>>

Looks up one or more user rows.

Source

fn netgroup( &self, name: &str, filter: Option<&str>, attributes: Option<&[String]>, ) -> Result<Vec<Row>>

Looks up one or more netgroup rows.

Implementors§