mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Rule pwpolicy_account_inactivity_enforce can lock-out user account #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmichalica on GitHub.
Summary
The password policy defined in the rule
pwpolicy_account_inactivity_enforcecan immediately lock out user account.Steps to reproduce
Create a
pwpolicy.xmlfile as described in the rulepwpolicy_account_inactivity_enforce. This will result in the file content (33 is the provided ODV):Then run as root
Operating System version
macOS Sonona Version 14.7.7 (23H723)
Intel or Apple Silicon
2,6 GHz 6-Core Intel Core i7
What is the current bug behavior?
User account is locked-out after policy application - user cannot log using their password anymore.
What is the expected correct behavior?
Password policy is correctly enforced, i.e. user account is locked out after ODV days of inactivity.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
See the attached screenshot.
Comment from @golbiga on this issue:
Possible fixes
User has to reset their password in the recovery mode.
@brodjieski commented on GitHub:
I have an Applecare ticket open for this issue. Until it gets resolved, I would recommend not applying the rule.
@robertgendler commented on GitHub:
Just a data point to add.
It appears this worked properly in macOS Monterey. But macOS Big Sur stops creating or having lastLoginTime stamp isn't there.
But it appears that key exists when the account is a mobile managed account with Sequoia. But local accounts do not have that attribute