Skip to main content

LdapContextMapper

Trait LdapContextMapper 

Source
pub trait LdapContextMapper: Send + Sync {
    // Required method
    fn map_user(
        &self,
        username: &str,
        result: &LdapAuthResult,
        config: &LdapConfig,
    ) -> User;
}
Expand description

LDAP context mapper for custom user creation.

Required Methods§

Source

fn map_user( &self, username: &str, result: &LdapAuthResult, config: &LdapConfig, ) -> User

Map LDAP result to a User.

Implementors§