aboutsummaryrefslogtreecommitdiff
blob: 8c384d5e6670a87a73d0e78ac884a1b9af6b8a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#if 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 1

# if defined(DEBUG)
#  define DEBUG_NOLOGIN DEBUG
# endif

# if __FreeBSD__ < 7
#  define SUPPORT_UNIX_SESSION		1
#  define SUPPORT_NOLOGIN_ACCOUNT	1
#  define SUPPORT_NOLOGIN_AUTH		0
# else
#  define SUPPORT_UNIX_SESSION		0
#  define SUPPORT_NOLOGIN_ACCOUNT	0
#  define SUPPORT_NOLOGIN_AUTH		1
# endif

#endif