Skip to content

Commit 952932e

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 952932e

File tree

1 file changed

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

1 file changed

+31
-0
lines changed

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

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

339+
#
340+
#
341+
# Lock out the user after an unsuccessful consecutive login attempts.
342+
#
343+
- lineinfile:
344+
path: /etc/pam.d/common-auth
345+
line: "{{ item }}"
346+
with_items:
347+
- 'auth required pam_tally2.so onerr=fail audit silent deny=10 unlock_time=900'
348+
349+
#
350+
#
351+
# Configuration to remember user password history.
352+
#
353+
- lineinfile:
354+
path: /etc/pam.d/common-password
355+
line: "{{ item }}"
356+
with_items:
357+
- 'password required pam_pwhistory.so remember=5'
358+
359+
#
360+
#
361+
# Configuration to enforce account lockout policies.
362+
#
363+
- lineinfile:
364+
path: /etc/pam.d/common-account
365+
line: "{{ item }}"
366+
with_items:
367+
- 'auth required pam_tally2.so deny=10 unlock_time=900 audit'
368+
369+
#
339370
#
340371
# Enable SNMP client tools to load MIBs by default.
341372
#

0 commit comments

Comments
 (0)