aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2010-09-03 15:53:04 +0200
committerDiego Elio Pettenò <flameeyes@gmail.com>2010-09-03 15:53:04 +0200
commitdad2c4127bdc027569db5581f54ef9c0bc85dd54 (patch)
tree2278c2910ba40da2f6552977b7be59e115673fc2 /linux-pam-conf
parentAlso protect account and password from pam_krb5 bad jumps. (diff)
downloadpambase-dad2c4127bdc027569db5581f54ef9c0bc85dd54.tar.gz
pambase-dad2c4127bdc027569db5581f54ef9c0bc85dd54.tar.bz2
pambase-dad2c4127bdc027569db5581f54ef9c0bc85dd54.zip
Add support for building minimal PAM chains.pambase-20100925pambase-20100903
When setting the MINIMAL flag on, the generated PAM chains will not use tally, motd, mail or lastlog modules, making th elogin quiet and skipping over the update of the login files.
Diffstat (limited to 'linux-pam-conf')
-rw-r--r--linux-pam-conf22
1 files changed, 14 insertions, 8 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index b5db3c3..7d3d07e 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -2,23 +2,29 @@
#define HAVE_ENV 1
#define HAVE_ACCESS 1
#define HAVE_SHELLS 1
-#define HAVE_MOTD 1
-#define HAVE_MAIL 1
+
#define SUPPORT_UNIX_SESSION 1
#define SUPPORT_NOLOGIN_ACCOUNT 1
#define SUPPORT_NOLOGIN_AUTH 1
+#if !MINIMAL
+# define HAVE_MOTD 1
+# define HAVE_MAIL 1
+# define HAVE_LASTLOG 1
+
+# if LINUX_PAM_VERSION > 0x010100 /* 1.1.0 */
+# define TALLY_MODULE pam_tally2.so
+# else
+# define TALLY_MODULE pam_tally.so
+# endif
+
+#endif
+
#if WANT_SHA512
# define UNIX_EXTENDED_ENCRYPTION sha512 shadow
#else
# 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