Skip to content

Commit a45eee2

Browse files
authored
Merge pull request #431 from joubbi/pwhistory
Use pam_pwhistory.so instead of pam_unix.so for remembering old passwords
2 parents 05bc809 + d693a8e commit a45eee2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roles/os_hardening/templates/etc/pam.d/rhel_auth.j2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ account [default=bad success=ok user_unknown=ignore] pam_sss.so
3333
account required pam_permit.so
3434

3535
{% if (os_auth_pam_passwdqc_enable | bool) %}
36-
password required pam_pwquality.so {{ os_auth_pam_pwquality_options }}
36+
password requisite pam_pwquality.so {{ os_auth_pam_pwquality_options }}
3737
{% endif %}
38-
{# NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512 #}
3938
{# NSA 2.3.3.6 Limit Password Reuse #}
40-
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=5
39+
password requisite pam_pwhistory.so remember=5 use_authtok
40+
{# NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512 #}
41+
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
4142
{% if (os_auth_pam_sssd_enable | bool) %}
4243
password sufficient pam_sss.so use_authtok
4344
{% endif %}

0 commit comments

Comments
 (0)