Skip to content

Commit

Permalink
DLPX-86530 CIS: delphix user lockout after failed login attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
rupalimatkar committed Apr 29, 2024
1 parent dc39541 commit 18d9564
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,29 @@
regexp: '^#?[\s]*(auth[\s]+required[\s]+pam_wheel\.so.*)$'
replace: '\1'

#
#
# Lock out the user after an unsuccessful consecutive login attempts.
#
- lineinfile:
path: /etc/pam.d/common-auth
line: "{{ item }}"
insertbefore: '^auth\s+\[success=1\s+default=ignore\]\s+pam_unix\.so\s+nullok\s+try_first_pass'
with_items:
- 'auth required pam_tally2.so audit silent deny=5 unlock_time=900'

#
#
# Configuration to enforce account lockout policies.
#
- lineinfile:
path: /etc/pam.d/common-account
line: "{{ item }}"
insertafter: EOF
with_items:
- 'account required pam_tally2.so'

#
#
# Enable SNMP client tools to load MIBs by default.
#
Expand Down

0 comments on commit 18d9564

Please sign in to comment.