mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-24 00:21:03 -05:00
fix, add sshd to pam_service_exclusion_list
to avoid faillock
This commit is contained in:
parent
224ae730c1
commit
8b104f544a
@ -19,11 +19,9 @@ true "PAM_SERVICE: $PAM_SERVICE"
|
||||
## "when used with a stack of modules, the module's return status will not contribute to the return code the application obtains."
|
||||
## http://www.linux-pam.org/Linux-PAM-html/sag-configuration-file.html
|
||||
|
||||
## - Failed dovecot logins should not result in account getting locked.
|
||||
## - Failed SSH public key authentication attempts do not increase pam_faillock
|
||||
## counter for some reason.
|
||||
## - Failed dovecot ssh logins from malicious remotes should not result in account getting locked.
|
||||
## This list can later be extended as needed.
|
||||
pam_service_exclusion_list="dovecot"
|
||||
pam_service_exclusion_list="dovecot sshd"
|
||||
|
||||
for pam_service_exclusion_item in $pam_service_exclusion_list ; do
|
||||
if [ "$PAM_SERVICE" = "$pam_service_exclusion_item" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user