diff options
-rw-r--r-- | openpam-conf | 6 | ||||
-rw-r--r-- | system-login.in | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/openpam-conf b/openpam-conf index d01f7f1..718b8a0 100644 --- a/openpam-conf +++ b/openpam-conf @@ -1,3 +1,9 @@ #if defined(HAVE_CRACKLIB) # error "pam_cracklib is only supported with Linux-PAM" #endif + +// OpenPAM only provides basic modules, it's FreeBSD that provides the +// extended modules, so check for FreeBSD building first. +#ifdef __FreeBSD__ +# define HAVE_LOGIN_ACCESS +#endif diff --git a/system-login.in b/system-login.in index 0ae6ceb..d4e750d 100644 --- a/system-login.in +++ b/system-login.in @@ -8,6 +8,9 @@ auth include system-auth #if HAVE_ACCESS account required pam_access.so DEBUG #endif +#ifdef HAVE_LOGIN_ACCESS +account required pam_login_access.so +#endif account include system-auth #if HAVE_TALLY account required pam_tally.so file=/var/log/faillog onerr=succeed DEBUG |