diff options
author | 2020-10-12 15:30:28 +0000 | |
---|---|---|
committer | 2020-10-12 15:30:28 +0000 | |
commit | abca630446236ddf83c7686ca8742b305bf8a050 (patch) | |
tree | 94cecc0ee24360abe6c171d82d260df0a3252422 | |
parent | templates/system-login.tpl: remove duplicate block from system-auth (again) (diff) | |
download | pambase-abca630446236ddf83c7686ca8742b305bf8a050.tar.gz pambase-abca630446236ddf83c7686ca8742b305bf8a050.tar.bz2 pambase-abca630446236ddf83c7686ca8742b305bf8a050.zip |
templates/system-login.tpl: remove duplicate block already in system-auth
Do it right this time!
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | templates/system-auth.tpl | 5 | ||||
-rw-r--r-- | templates/system-login.tpl | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/templates/system-auth.tpl b/templates/system-auth.tpl index 11319d6..557da9b 100644 --- a/templates/system-auth.tpl +++ b/templates/system-auth.tpl @@ -9,6 +9,11 @@ auth [success=1 default=ignore] pam_krb5.so {{ krb5_params }} auth required pam_unix.so try_first_pass {{ likeauth }} {{ nullok|default('', true) }} {{ debug|default('', true) }} auth optional pam_permit.so +{% if not minimal %} +auth required pam_faillock.so preauth conf=/etc/security/faillock.conf +auth sufficient pam_unix.so nullok try_first_pass +auth [default=die] pam_faillock.so authfail +{% endif %} {% if krb5 %} account [success=1 default=ignore] pam_krb5.so {{ krb5_params }} diff --git a/templates/system-login.tpl b/templates/system-login.tpl index 25843f5..889c2d7 100644 --- a/templates/system-login.tpl +++ b/templates/system-login.tpl @@ -2,12 +2,6 @@ auth required pam_shells.so {{ debug|default('', true) }} auth required pam_nologin.so auth include system-auth -{% if not minimal %} -auth required pam_faillock.so preauth conf=/etc/security/faillock.conf -auth sufficient pam_unix.so nullok try_first_pass -auth [default=die] pam_faillock.so authfail -{% endif %} - account required pam_access.so {{ debug|default('', true) }} account required pam_nologin.so account include system-auth |