Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to User module for checking minimum/maximum days for password rotation #637

Closed
jrbeilke opened this issue Jan 31, 2022 · 0 comments · Fixed by #638
Closed

Add methods to User module for checking minimum/maximum days for password rotation #637

jrbeilke opened this issue Jan 31, 2022 · 0 comments · Fixed by #638

Comments

@jrbeilke
Copy link

Need to verify that user accounts with passwords are rotated on a regular basis. Would be helpful if the User module in testinfra could check the minimum/maximum days for password changes of a user, in addition to the account expiration that's already available ie.

$ chage -l myuser
Last password change					: Oct 05, 2021
Password expires					: Jan 03, 2022
Password inactive					: Feb 02, 2022
Account expires						: never
Minimum number of days between password change		: 7
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant