pub trait LdapAccountsConfigSetters: Holds<LdapAccountsConfig> + Sized {
Show 16 methods
// Required methods
fn url(self, value: impl Into<String>) -> Self;
fn start_tls(self, value: bool) -> Self;
fn ca_file(self, value: impl Into<Option<String>>) -> Self;
fn base(self, value: impl Into<String>) -> Self;
fn bind(self, value: impl Into<Option<String>>) -> Self;
fn bind_password(self, value: impl Into<Option<Secret<String>>>) -> Self;
fn user_filter(self, value: impl Into<String>) -> Self;
fn object_filter(self, value: impl Into<String>) -> Self;
fn allow_filter_lookups(self, value: bool) -> Self;
fn name_attribute(self, value: impl Into<String>) -> Self;
fn group_attribute(self, value: impl Into<String>) -> Self;
fn group_filter(self, value: impl Into<Option<String>>) -> Self;
fn group_base(self, value: impl Into<Option<String>>) -> Self;
fn nested_groups(self, value: bool) -> Self;
fn timeout_seconds(self, value: u32) -> Self;
fn cache(self, value: impl Into<CacheSetting>) -> Self;
}Expand description
The typed setters of LdapAccountsConfig, for any builder that holds its settings.
Required Methods§
Sourcefn start_tls(self, value: bool) -> Self
fn start_tls(self, value: bool) -> Self
Start TLS on an LDAP connection before sending credentials.
Sourcefn ca_file(self, value: impl Into<Option<String>>) -> Self
fn ca_file(self, value: impl Into<Option<String>>) -> Self
Optional PEM file with the only trusted server roots.
Sourcefn bind(self, value: impl Into<Option<String>>) -> Self
fn bind(self, value: impl Into<Option<String>>) -> Self
Service-account distinguished name used for searches.
Sourcefn bind_password(self, value: impl Into<Option<Secret<String>>>) -> Self
fn bind_password(self, value: impl Into<Option<Secret<String>>>) -> Self
Service-account password; wiped when dropped and never shown.
Sourcefn user_filter(self, value: impl Into<String>) -> Self
fn user_filter(self, value: impl Into<String>) -> Self
LDAP filter with {name} for the escaped account name.
Sourcefn object_filter(self, value: impl Into<String>) -> Self
fn object_filter(self, value: impl Into<String>) -> Self
The filter every account a filter lookup may find matches, which the lookup’s filter
is AND-ed with so it can only narrow it. It must carry every restriction an account
must meet to sign in here (people, not computer or service accounts; an organisational
unit; a group): user_filter is not applied to a filter lookup, as it is built around
a name. The default is people, not Active Directory computer accounts.
Sourcefn allow_filter_lookups(self, value: bool) -> Self
fn allow_filter_lookups(self, value: bool) -> Self
Whether a lookup by: "filter" is answered. Off by default: a filter is built only by
a matcher’s rule, with its values escaped, and a directory with no such rule has no
reason to take one. Anything that can make a lookup by: "filter" with its own text
can search the directory, so turn this on only where the lookups come from a matcher.
Sourcefn name_attribute(self, value: impl Into<String>) -> Self
fn name_attribute(self, value: impl Into<String>) -> Self
Attribute containing the directory’s canonical account name.
Sourcefn group_attribute(self, value: impl Into<String>) -> Self
fn group_attribute(self, value: impl Into<String>) -> Self
Attribute containing group distinguished names; empty disables direct groups.
Sourcefn group_filter(self, value: impl Into<Option<String>>) -> Self
fn group_filter(self, value: impl Into<Option<String>>) -> Self
Optional filter template with {dn} for groups containing the account.
Sourcefn group_base(self, value: impl Into<Option<String>>) -> Self
fn group_base(self, value: impl Into<Option<String>>) -> Self
Optional base for group searches; defaults to base.
Sourcefn nested_groups(self, value: bool) -> Self
fn nested_groups(self, value: bool) -> Self
Read nested groups with Active Directory’s matching rule.
Sourcefn timeout_seconds(self, value: u32) -> Self
fn timeout_seconds(self, value: u32) -> Self
Connection and operation timeout in seconds; values below one become one.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".