From dad2c4127bdc027569db5581f54ef9c0bc85dd54 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 3 Sep 2010 15:53:04 +0200 Subject: Add support for building minimal PAM chains. 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. --- linux-pam-conf | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'linux-pam-conf') 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 -- cgit v1.2.3-65-gdbad