aboutsummaryrefslogtreecommitdiff
blob: e38107c7e45538a9132ff246f846784eeee44e2d (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
# define SUPPORT_UNIX_SESSION		0

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

# define SUPPORT_NOLOGIN_ACCOUNT	1
# define SUPPORT_NOLOGIN_AUTH		0

# if defined(WANT_SHA512)
#  error "SHA512 support is not present for FreeBSD!"
# endif

#endif /* __FreeBSD__ */