Expand description
LDAP Authentication module.
Provides LDAP/Active Directory authentication support.
§Spring Security Equivalent
org.springframework.security.ldap package including:
LdapAuthenticationProviderLdapUserDetailsServiceActiveDirectoryLdapAuthenticationProvider
§Example
ⓘ
use actix_security::http::security::ldap::{LdapConfig, LdapAuthenticator};
let ldap = LdapConfig::new("ldap://localhost:389")
.base_dn("dc=example,dc=com")
.user_search_filter("(uid={0})")
.bind_dn("cn=admin,dc=example,dc=com")
.bind_password("secret");
let authenticator = LdapAuthenticator::new(ldap);Structs§
- Default
Ldap Context Mapper - Default context mapper.
- Ldap
Auth Result - LDAP authentication result.
- Ldap
Authenticator - LDAP Authenticator for actix-security.
- Ldap
Config - LDAP connection configuration.
- Mock
Ldap Client - Mock LDAP client for testing.
Enums§
- Ldap
Error - LDAP authentication error.
Traits§
- Ldap
Context Mapper - LDAP context mapper for custom user creation.
- Ldap
Operations - Trait for LDAP operations.