aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-05 20:49:08 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-05 20:49:08 +0100
commite65b680f528d113518c5c1a5de55df853ac4a38d (patch)
tree17773de627a01d49a2bbbf4c4a2386f091869d87
parentpam_nologin does not accept debug option on Linux-PAM at least. (diff)
downloadpambase-e65b680f528d113518c5c1a5de55df853ac4a38d.tar.gz
pambase-e65b680f528d113518c5c1a5de55df853ac4a38d.tar.bz2
pambase-e65b680f528d113518c5c1a5de55df853ac4a38d.zip
FreeBSD's pam_nologin module supports the debug option, so use it when available (and debug was requested).
-rw-r--r--openpam-conf7
-rw-r--r--system-login.in2
2 files changed, 8 insertions, 1 deletions
diff --git a/openpam-conf b/openpam-conf
index 718b8a0..4d38281 100644
--- a/openpam-conf
+++ b/openpam-conf
@@ -6,4 +6,11 @@
// extended modules, so check for FreeBSD building first.
#ifdef __FreeBSD__
# define HAVE_LOGIN_ACCESS
+
+# if defined(DEBUG)
+# define DEBUG_NOLOGIN DEBUG
+# endif
+
#endif
+
+#end
diff --git a/system-login.in b/system-login.in
index aa7c068..bb990ab 100644
--- a/system-login.in
+++ b/system-login.in
@@ -7,7 +7,7 @@ auth required pam_tally.so file=/var/log/faillog onerr=succeed DEBUG
#if HAVE_SHELLS
auth required pam_shells.so DEBUG
#endif
-auth required pam_nologin.so
+auth required pam_nologin.so DEBUG_NOLOGIN
auth include system-auth
#if HAVE_ACCESS