Skip to content

Commit 659e5ad

Browse files
committed
Changed to pam_pwhistory.so instead of pam_unix.so for remembering old passwords.
Signed-off-by: Farid Joubbi <[email protected]>
1 parent 9614273 commit 659e5ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 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
39-
# NSA 2.3.3.6 Limit Password Reuse
40-
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=5
38+
{# NSA 2.3.3.6 Limit Password Reuse #}
39+
password required 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)