pub struct LdapAccounts { /* private fields */ }Expand description
LDAP accounts as authentication and directory providers, with lookups kept as the
configuration’s cache says.
Implementations§
Source§impl LdapAccounts
impl LdapAccounts
Sourcepub fn new(config: LdapAccountsConfig) -> Result<Self, String>
pub fn new(config: LdapAccountsConfig) -> Result<Self, String>
Validates the LDAP configuration without opening a network connection.
§Errors
Returns an error for unsafe transport, incomplete credentials, invalid filters, or a
ca_file that cannot be read.
Sourcepub fn non_defaults(&self) -> &[NonDefault]
pub fn non_defaults(&self) -> &[NonDefault]
What the TLS configuration for ca_file allows beyond coqui-peer-tls’s default policy
(TLS 1.2 and 1.3), as data for the host to act on. Empty without a ca_file, where
ldap3’s own rustls defaults apply.
Trait Implementations§
Source§impl Authenticator for LdapAccounts
impl Authenticator for LdapAccounts
Source§impl Debug for LdapAccounts
impl Debug for LdapAccounts
Source§impl Directory for LdapAccounts
impl Directory for LdapAccounts
Source§impl ProviderDecl for LdapAccounts
impl ProviderDecl for LdapAccounts
Source§impl TryFrom<Described<LdapAccountsConfig>> for LdapAccounts
impl TryFrom<Described<LdapAccountsConfig>> for LdapAccounts
Source§impl TryFrom<LdapAccountsConfig> for LdapAccounts
impl TryFrom<LdapAccountsConfig> for LdapAccounts
Auto Trait Implementations§
impl !RefUnwindSafe for LdapAccounts
impl !UnwindSafe for LdapAccounts
impl Freeze for LdapAccounts
impl Send for LdapAccounts
impl Sync for LdapAccounts
impl Unpin for LdapAccounts
impl UnsafeUnpin for LdapAccounts
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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