pub struct KanidmGroupAccountPolicy {
pub auth_session_expiry: Option<u32>,
pub credential_type_minimum: Option<CredentialTypeMinimum>,
pub password_minimum_length: Option<u32>,
pub privilege_expiry: Option<u32>,
pub webauthn_attestation_ca_list: Option<String>,
pub allow_primary_cred_fallback: Option<bool>,
pub limit_search_max_results: Option<u32>,
pub limit_search_max_filter_test: Option<u32>,
}Expand description
Account policy settings for the group.
Account Policy defines the security requirements that accounts must meet and influences users sessions. Policy is defined on groups so that membership of a group influences the security of its members. This allows you to express that if you can access a system or resource, then the account must also meet the policy requirements.
When an account is affected by multiple policies, the strictest component from each policy is applied.
More info: https://kanidm.github.io/kanidm/stable/accounts/account_policy.html
Fields§
§auth_session_expiry: Option<u32>Maximum length in seconds that an authentication session may exist for. After this time, the user must reauthenticate.
This value provides a difficult balance - forcing frequent re-authentications can frustrate and annoy users. However extremely long sessions allow a stolen or disclosed session token/device to read data for an extended period.
credential_type_minimum: Option<CredentialTypeMinimum>Minimum security strength of credentials that may be assigned to accounts affected by this policy. In order from weakest to strongest: any < mfa < passkey < attested_passkey.
attested_passkey requires configuring webauthnAttestationCaList.
password_minimum_length: Option<u32>Minimum length for passwords (if they are allowed by credential_type_minimum).
privilege_expiry: Option<u32>Maximum length in seconds that privileges will exist after reauthentication for a read/write session. After this time, the session returns to read-only mode.
Maximum allowed value is 3600 (1 hour).
webauthn_attestation_ca_list: Option<String>WebAuthn attestation CA list. This is the list of certificate authorities and device AAGUIDs that must be used by members of this policy. This allows limiting devices to specific models.
Generate this list using fido-mds-tool from the webauthn-rs project.
More info: https://kanidm.github.io/kanidm/stable/accounts/account_policy.html#setting-webauthn-attestation-ca-lists
allow_primary_cred_fallback: Option<bool>Allow authenticating with the primary account password when logging in via LDAP. If both an LDAP and primary password are specified, Kanidm will only accept the LDAP password.
limit_search_max_results: Option<u32>Maximum number of results returned from a search operation.
limit_search_max_filter_test: Option<u32>Maximum number of filter tests allowed in a search operation.
Trait Implementations§
Source§impl Clone for KanidmGroupAccountPolicy
impl Clone for KanidmGroupAccountPolicy
Source§fn clone(&self) -> KanidmGroupAccountPolicy
fn clone(&self) -> KanidmGroupAccountPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KanidmGroupAccountPolicy
impl Debug for KanidmGroupAccountPolicy
Source§impl Default for KanidmGroupAccountPolicy
impl Default for KanidmGroupAccountPolicy
Source§fn default() -> KanidmGroupAccountPolicy
fn default() -> KanidmGroupAccountPolicy
Source§impl<'de> Deserialize<'de> for KanidmGroupAccountPolicy
impl<'de> Deserialize<'de> for KanidmGroupAccountPolicy
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>,
Source§impl JsonSchema for KanidmGroupAccountPolicy
impl JsonSchema for KanidmGroupAccountPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for KanidmGroupAccountPolicy
impl PartialEq for KanidmGroupAccountPolicy
Source§fn eq(&self, other: &KanidmGroupAccountPolicy) -> bool
fn eq(&self, other: &KanidmGroupAccountPolicy) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for KanidmGroupAccountPolicy
impl Serialize for KanidmGroupAccountPolicy
impl StructuralPartialEq for KanidmGroupAccountPolicy
Auto Trait Implementations§
impl Freeze for KanidmGroupAccountPolicy
impl RefUnwindSafe for KanidmGroupAccountPolicy
impl Send for KanidmGroupAccountPolicy
impl Sync for KanidmGroupAccountPolicy
impl Unpin for KanidmGroupAccountPolicy
impl UnsafeUnpin for KanidmGroupAccountPolicy
impl UnwindSafe for KanidmGroupAccountPolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request