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§
Sourcefn map_user(
&self,
username: &str,
result: &LdapAuthResult,
config: &LdapConfig,
) -> User
fn map_user( &self, username: &str, result: &LdapAuthResult, config: &LdapConfig, ) -> User
Map LDAP result to a User.