AccountPolicy
The local password and account-lockout policy.
Returned by account_policy and
update_account_policy.
Fields
force_logoff @ (time.Duration | nil)Delay before users are forcibly logged off once their valid logon hours expire, or
nilwhen forced logoff is disabled.lockout_duration @ time.DurationTime a locked account stays locked.
lockout_observation_window @ time.DurationTime after which the failed-logon counter resets.
lockout_threshold @ IntFailed logons allowed before lockout. Zero disables lockout.
max_password_age @ (time.Duration | nil)Maximum password age, or
nilwhen passwords do not expire.min_password_age @ time.DurationMinimum time before a password may be changed again.
min_password_length @ IntMinimum number of characters a password must have.
password_history_length @ IntNumber of previous passwords retained.