From 893fe4cc09d97f7b5c276e4509de4127747dcd99 Mon Sep 17 00:00:00 2001 From: heyitao Date: Fri, 23 Oct 2020 03:20:51 -0400 Subject: [PATCH] fix: when the remote user successfully login, clearly the record file(/var/run/faillock/) https://gitee.com/src-openeuler/pam/issues/I22E4R?from=project-issue --- pam.spec | 5 ++++- password-auth.pamd | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pam.spec b/pam.spec index ab17104..e3a4e4b 100644 --- a/pam.spec +++ b/pam.spec @@ -4,7 +4,7 @@ %define _pamconfdir %{_sysconfdir}/pam.d Name: pam Version: 1.4.0 -Release: 2 +Release: 3 Summary: Pluggable Authentication Modules for Linux License: BSD and GPLv2+ URL: http://www.linux-pam.org/ @@ -169,6 +169,9 @@ fi %changelog +* Fri Oct 23 2020 heyitao - 1.4.0-3 +- when the remote user successfully login, clearly the record file. + * Fri Sep 25 2020 panxiaohe - 1.4.0-2 - fix the following issue. "Current password:" is repeated twice when executing the passwd diff --git a/password-auth.pamd b/password-auth.pamd index ad651e8..a279f71 100644 --- a/password-auth.pamd +++ b/password-auth.pamd @@ -11,6 +11,7 @@ auth requisite pam_succeed_if.so uid >= 1000 quiet_success auth required pam_deny.so account required pam_unix.so +account required pam_faillock.so account sufficient pam_localuser.so account sufficient pam_succeed_if.so uid < 1000 quiet -account [default=bad success=ok user_unknown=ignore] pam_sss.so -- Gitee