pub struct LdapConfig {Show 13 fields
pub server_url: String,
pub base_dn: String,
pub user_filter: String,
pub bind_dn_pattern: Option<String>,
pub bind_dn: Option<String>,
pub bind_password: Option<String>,
pub group_base_dn: Option<String>,
pub group_filter: Option<String>,
pub required_group: Option<String>,
pub timeout_secs: u64,
pub pool_size: usize,
pub use_tls: bool,
pub tls_skip_verify: bool,
}Expand description
Configuration for LDAP authentication
Fields§
§server_url: StringLDAP server URL (e.g., ldap://localhost:389 or ldaps://localhost:636)
base_dn: StringBase DN for user searches
user_filter: StringUser search filter (e.g., (uid={username}))
bind_dn_pattern: Option<String>Bind DN pattern for direct bind (e.g., “uid={username},ou=users,dc=example,dc=com”) If set, this is used instead of search + bind
bind_dn: Option<String>Bind DN for initial connection (if needed for search operations)
bind_password: Option<String>Bind password for initial connection
group_base_dn: Option<String>Group base DN for membership checks
group_filter: Option<String>Group membership filter
required_group: Option<String>Required group DN for authentication
timeout_secs: u64Connection timeout in seconds
pool_size: usizeEnable connection pooling
use_tls: boolEnable TLS/STARTTLS
tls_skip_verify: boolSkip TLS certificate verification (for testing only)
Trait Implementations§
Source§impl Clone for LdapConfig
impl Clone for LdapConfig
Source§fn clone(&self) -> LdapConfig
fn clone(&self) -> LdapConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LdapConfig
impl Debug for LdapConfig
Auto Trait Implementations§
impl Freeze for LdapConfig
impl RefUnwindSafe for LdapConfig
impl Send for LdapConfig
impl Sync for LdapConfig
impl Unpin for LdapConfig
impl UnsafeUnpin for LdapConfig
impl UnwindSafe for LdapConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more