#[non_exhaustive]pub struct LdapAccountsConfig {Show 16 fields
pub url: String,
pub start_tls: bool,
pub ca_file: Option<String>,
pub base: String,
pub bind: Option<String>,
pub bind_password: Option<Secret<String>>,
pub user_filter: String,
pub object_filter: String,
pub allow_filter_lookups: bool,
pub name_attribute: String,
pub group_attribute: String,
pub group_filter: Option<String>,
pub group_base: Option<String>,
pub nested_groups: bool,
pub timeout_seconds: u32,
pub cache: CacheSetting,
}Expand description
LDAP authentication and query settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: StringLDAP or LDAPS server URL.
start_tls: boolStart TLS on an LDAP connection before sending credentials.
ca_file: Option<String>Optional PEM file with the only trusted server roots.
base: StringBase distinguished name used for searches.
bind: Option<String>Service-account distinguished name used for searches.
bind_password: Option<Secret<String>>Service-account password; wiped when dropped and never shown.
user_filter: StringLDAP filter with {name} for the escaped account name.
object_filter: StringThe 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.
allow_filter_lookups: boolWhether 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.
name_attribute: StringAttribute containing the directory’s canonical account name.
group_attribute: StringAttribute containing group distinguished names; empty disables direct groups.
group_filter: Option<String>Optional filter template with {dn} for groups containing the account.
group_base: Option<String>Optional base for group searches; defaults to base.
nested_groups: boolRead nested groups with Active Directory’s matching rule.
timeout_seconds: u32Connection and operation timeout in seconds; values below one become one.
cache: CacheSettingLookups kept for a few seconds, to absorb bursts: true (5 s, 1 s for “not found”,
10 000 entries), false, or { "ttl", "negative_ttl", "max_entries" } (durations read
5, 1.5, 5s or 250ms). Passwords are always checked at the directory.