Skip to content

Commit

Permalink
expose pam_unix.so options to an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Germain committed Feb 10, 2021
1 parent 2c25da7 commit 022d656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
pam['passwdqc']['options'] = 'min=disabled,disabled,16,12,8'
pam['cracklib']['options'] = 'try_first_pass retry=3 type='
pam['pwquality']['options'] = 'try_first_pass retry=3 type='
pam['unix']['options'] = 'shadow nullok try_first_pass use_authtok remember=5'
pam['tally2']['template_cookbook'] = 'os-hardening'
pam['passwdqc']['template_cookbook'] = 'os-hardening'
pam['system-auth']['template_cookbook'] = 'os-hardening'
Expand Down
2 changes: 1 addition & 1 deletion templates/default/rhel_system_auth.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ password requisite pam_cracklib.so <%= node['os-hardening']['auth']['pam'

# NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512
# NSA 2.3.3.6 Limit Password Reuse
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=5
password sufficient pam_unix.so sha512 <%= node['os-hardening']['auth']['pam']['unix']['options'] %>
password required pam_deny.so

session optional pam_keyinit.so revoke
Expand Down

0 comments on commit 022d656

Please sign in to comment.