mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
build: refuse to build without PAM support if enabled
If PAM support is enabled, refuse to build if the prerequisite libraries are not in place, instead of silently disabling PAM support and continuing with the build. This simplifies inclusion of pam_wrapper in the tree. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
d92a23e4ae
commit
2fa9346333
@ -947,6 +947,10 @@ int i; i = PAM_RADIO_TYPE;
|
||||
if use_pam:
|
||||
conf.DEFINE('WITH_PAM', 1)
|
||||
conf.DEFINE('WITH_PAM_MODULES', 1)
|
||||
else:
|
||||
conf.fatal("PAM support is enabled but prerequisite libraries "
|
||||
"or headers not found. Use --without-pam to disable "
|
||||
"PAM support.");
|
||||
|
||||
seteuid = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user