Skip to content

Commit

Permalink
Update section_5_Access_Authentication_and_Authorization.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
EnguerrandDeclercq authored Oct 13, 2023
1 parent 8f80a66 commit 82548db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/section_5_Access_Authentication_and_Authorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -666,20 +666,23 @@
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:
Expand Down

0 comments on commit 82548db

Please sign in to comment.