pub struct LdapConfig {
pub enabled: bool,
pub servers: Option<Vec<LdapServer>>,
pub cache_refresh_interval: Option<u32>,
pub authentication_query_suffix: Option<String>,
pub authorization_query_suffix: Option<String>,
pub bind_dn: Option<String>,
pub bind_pass: Option<String>,
pub extra: Value,
}
Expand description
LDAP configuration
Fields§
§enabled: bool
Whether LDAP authentication is enabled
servers: Option<Vec<LdapServer>>
List of LDAP servers to connect to
cache_refresh_interval: Option<u32>
Cache refresh interval in seconds for LDAP data
authentication_query_suffix: Option<String>
LDAP query suffix for authentication
LDAP query suffix for authorization
bind_dn: Option<String>
Distinguished name for LDAP binding
bind_pass: Option<String>
Password for LDAP binding
extra: Value
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
Source§impl<'de> Deserialize<'de> for LdapConfig
impl<'de> Deserialize<'de> for LdapConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LdapConfig
impl RefUnwindSafe for LdapConfig
impl Send for LdapConfig
impl Sync for LdapConfig
impl Unpin 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