Skip to content

Commit 98f62b9

Browse files
committed
DLPX-86530 CIS: delphix user lockout after failed login attempts
PR URL: https://www.github.com/delphix/delphix-platform/pull/474
1 parent 3c58815 commit 98f62b9

File tree

1 file changed

+19
-0
lines changed
  • files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks

1 file changed

+19
-0
lines changed

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

+19
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,25 @@
336336
regexp: '^#?[\s]*(auth[\s]+required[\s]+pam_wheel\.so.*)$'
337337
replace: '\1'
338338

339+
#
340+
# Lock out the user after an unsuccessful consecutive login attempts.
341+
#
342+
- lineinfile:
343+
path: /etc/pam.d/common-auth
344+
line: "{{ item }}"
345+
with_items:
346+
- 'auth required pam_tally2.so onerr=fail audit silent deny=5 unlock_time=900'
347+
348+
#
349+
# Configuration to remember user password history.
350+
#
351+
- lineinfile:
352+
path: /etc/pam.d/common-password
353+
line: "{{ item }}"
354+
with_items:
355+
- 'password required pam_pwhistory.so remember=5'
356+
357+
#
339358
#
340359
# Enable SNMP client tools to load MIBs by default.
341360
#

0 commit comments

Comments
 (0)