Skip to content

Commit

Permalink
Merge pull request dbernaci#19 from jledoze/enguerrand/fix_rule_5_3_2
Browse files Browse the repository at this point in the history
SECU-954 Fix CIS rule 5.3.2
  • Loading branch information
jledoze authored Nov 2, 2023
2 parents e6ee7c3 + 82548db commit 3f238a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/section_5_Access_Authentication_and_Authorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -666,16 +666,25 @@
lineinfile:
dest: /etc/pam.d/common-auth
line: "auth required pam_tally2.so onerr=fail audit silent deny=5 unlock_time=900"
state: present
create: true

- name: 5.3.2 Ensure lockout for failed password attempts is configured - pam_deny.so
lineinfile:
dest: /etc/pam.d/common-account
regexp: '^account\srequisite'
line: "account requisite pam_deny.so"
state: present
create: true

- name: 5.3.2 Ensure lockout for failed password attempts is configured - pam_tally2.so
lineinfile:
dest: /etc/pam.d/common-account
regexp: '^account\srequired'
line: "account required pam_tally2.so"
state: present
create: true

tags:
- section5
- level_1_server
Expand Down

0 comments on commit 3f238a8

Please sign in to comment.