ansible-lockdown / RHEL9-CIS

Ansible role for Red Hat 9 CIS Baseline
https://ansible-lockdown.readthedocs.io
MIT License
109 stars 86 forks source link

5.6.1.{1-3} rules are only partially implemented, the chage options are missing #189

Closed ipruteanu-sie closed 2 months ago

ipruteanu-sie commented 5 months ago

Describe the Issue 5.6.1.1 - Ensure password expiration is 365 days or less 5.6.1.2 - Ensure minimum days between password changes is configured 5.6.1.3 - Ensure password expiration warning days is 7 or more CIS rules are advising users not only to add the proper values in /etc/login.defs(which is currently implemented via this role), but also to modify user params via chage tool.

Expected Behavior Complete implementation of rules.

Actual Behavior Partial implementation of rules.

Control(s) Affected 5.6.1.1, 5.6.1.2, 5.6.1.3

Environment (please complete the following information):

Additional Notes PR will take advantage of current ansible.builtin.user options:

Possible Solution PR