diff options
author | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-06-20 22:29:22 +0200 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-06-20 22:29:22 +0200 |
commit | 42d8a8a5eaf38e0b779f587566afdd4a63444f76 (patch) | |
tree | 76db567f944ca424f2f5eb832b3c94efc9ac0a97 /system-login.in | |
parent | Fix pam_nologin on Gentoo/FreeBSD 7.1. (diff) | |
download | pambase-42d8a8a5eaf38e0b779f587566afdd4a63444f76.tar.gz pambase-42d8a8a5eaf38e0b779f587566afdd4a63444f76.tar.bz2 pambase-42d8a8a5eaf38e0b779f587566afdd4a63444f76.zip |
Improve handling of the tally module.
The pam_tally module, only provided by Linux-PAM for us, is replaced in
newer instances with the pam_tally2 module which is wordsize-independent.
For this reason, make the configuration choose the best tally module
between the two depending on the version of the Linux-PAM package.
Also drop the DEBUG indication: the module does not support the debug
option.
Diffstat (limited to 'system-login.in')
-rw-r--r-- | system-login.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system-login.in b/system-login.in index d13d0d9..0bf2ce3 100644 --- a/system-login.in +++ b/system-login.in @@ -1,5 +1,5 @@ -#if HAVE_TALLY -auth required pam_tally.so file=/var/log/faillog onerr=succeed DEBUG +#if defined(TALLY_MODULE) +auth required TALLY_MODULE file=/var/log/faillog onerr=succeed #endif #if HAVE_SHELLS auth required pam_shells.so DEBUG @@ -22,8 +22,8 @@ account required pam_login_access.so account required pam_nologin.so DEBUG_NOLOGIN #endif account include system-auth -#if HAVE_TALLY -account required pam_tally.so file=/var/log/faillog onerr=succeed DEBUG +#if defined(TALLY_MODULE) +account required TALLY_MODULE file=/var/log/faillog onerr=succeed DEBUG #endif password include system-auth |