mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-03-11 18:40:11 +07: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."
|
## "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
|
## http://www.linux-pam.org/Linux-PAM-html/sag-configuration-file.html
|
||||||
|
|
||||||
## - Failed dovecot logins should not result in account getting locked.
|
## - Failed dovecot ssh logins from malicious remotes should not result in account getting locked.
|
||||||
## - Failed SSH public key authentication attempts do not increase pam_faillock
|
|
||||||
## counter for some reason.
|
|
||||||
## This list can later be extended as needed.
|
## 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
|
for pam_service_exclusion_item in $pam_service_exclusion_list ; do
|
||||||
if [ "$PAM_SERVICE" = "$pam_service_exclusion_item" ]; then
|
if [ "$PAM_SERVICE" = "$pam_service_exclusion_item" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user