aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-pam-conf1
-rw-r--r--openpam-conf8
-rw-r--r--system-login.in2
3 files changed, 9 insertions, 2 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index 0ba9db7..44087d8 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -7,6 +7,7 @@
#define HAVE_MAIL 1
#define SUPPORT_UNIX_SESSION 1
#define SUPPORT_NOLOGIN_ACCOUNT 1
+#define SUPPORT_NOLOGIN_AUTH 1
#define UNIX_EXTENDED_ENCRYPTION md5 shadow
diff --git a/openpam-conf b/openpam-conf
index 83b682d..8c384d5 100644
--- a/openpam-conf
+++ b/openpam-conf
@@ -12,9 +12,13 @@
# endif
# if __FreeBSD__ < 7
-# define SUPPORT_UNIX_SESSION 1
+# define SUPPORT_UNIX_SESSION 1
+# define SUPPORT_NOLOGIN_ACCOUNT 1
+# define SUPPORT_NOLOGIN_AUTH 0
# else
-# define SUPPORT_UNIX_SESSION 0
+# define SUPPORT_UNIX_SESSION 0
+# define SUPPORT_NOLOGIN_ACCOUNT 0
+# define SUPPORT_NOLOGIN_AUTH 1
# endif
#endif
diff --git a/system-login.in b/system-login.in
index 09af7e7..fb04a98 100644
--- a/system-login.in
+++ b/system-login.in
@@ -4,7 +4,9 @@ auth required pam_tally.so file=/var/log/faillog onerr=succeed DEBUG
#if HAVE_SHELLS
auth required pam_shells.so DEBUG
#endif
+#if SUPPORT_NOLOGIN_AUTH
auth required pam_nologin.so DEBUG_NOLOGIN
+#endif
auth include system-auth
#if HAVE_GNOME_KEYRING
auth optional pam_gnome_keyring.so