Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLPX-86530 CIS: delphix user lockout after failed login attempts #474

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,42 @@
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'


#
#
# Configuration to remember user password history.
#
- lineinfile:
path: /etc/pam.d/common-password
line: "{{ item }}"
insertbefore: '^password\s+\[success=1 default=ignore\]\s+pam_unix\.so\s+obscure\s+sha512'
with_items:
- 'password required pam_pwhistory.so remember=5'


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