aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 14:49:38 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 14:49:38 +0100
commit0c43f07d81f9798e116fe36c1f36126ee0ffc9a2 (patch)
tree65bff71ecd8ceb4f7b4e47b22fd1c8fb1d40714c
parentDon't use pam_shells unconditionally as FreeBSD modules don't provide it. See... (diff)
downloadpambase-0c43f07d81f9798e116fe36c1f36126ee0ffc9a2.tar.gz
pambase-0c43f07d81f9798e116fe36c1f36126ee0ffc9a2.tar.bz2
pambase-0c43f07d81f9798e116fe36c1f36126ee0ffc9a2.zip
Don't use pam_motd and pam_mail with OpenPAM.pambase-20080301
-rw-r--r--linux-pam-conf2
-rw-r--r--system-login.in6
2 files changed, 6 insertions, 2 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index ab2c5a0..cd5d1ef 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -3,6 +3,8 @@
#define HAVE_TALLY 1
#define HAVE_ACCESS 1
#define HAVE_SHELLS 1
+#define HAVE_MOTD 1
+#define HAVE_MAIL 1
#define UNIX_EXTENDED_ENCRYPTION md5 shadow
diff --git a/system-login.in b/system-login.in
index 7907d3a..132cc03 100644
--- a/system-login.in
+++ b/system-login.in
@@ -40,8 +40,10 @@ session include system-auth
#if HAVE_SELINUX
session required pam_selinux.so multiple open
#endif
-// These are optional, so there is no reason to actually put them under
-// additional conditionals to get them ignored on FreeBSD.
+#if HAVE_MOTD
session optional pam_motd.so motd=/etc/motd
+#endif
+#if HAVE_MAIL
session optional pam_mail.so
+#endif