aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-06-20 22:29:22 +0200
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-06-20 22:29:22 +0200
commit42d8a8a5eaf38e0b779f587566afdd4a63444f76 (patch)
tree76db567f944ca424f2f5eb832b3c94efc9ac0a97 /linux-pam-conf
parentFix pam_nologin on Gentoo/FreeBSD 7.1. (diff)
downloadpambase-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 'linux-pam-conf')
-rw-r--r--linux-pam-conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index ee34768..b5db3c3 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -1,6 +1,5 @@
#define HAVE_LIMITS 1
#define HAVE_ENV 1
-#define HAVE_TALLY 1
#define HAVE_ACCESS 1
#define HAVE_SHELLS 1
#define HAVE_MOTD 1
@@ -15,5 +14,11 @@
# define UNIX_EXTENDED_ENCRYPTION md5 shadow
#endif
+#if LINUX_PAM_VERSION > 0x010100 /* 1.1.0 */
+# define TALLY_MODULE pam_tally2.so
+#else
+# define TALLY_MODULE pam_tally.so
+#endif
+
#define LIKEAUTH likeauth
#define DEBUG_NOLOGIN