From 607c9ab307db36aee0604d209a13b45d28c63d9b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 24 Jul 2019 16:22:12 +1200 Subject: build: Require --without-ad-dc for --without-ads Building an AD DC while setting --without-ads makes no sense and just wastes compile time on our build hosts. To allow samba-nt4 to build --without-ad-dc we set rpc.spoolss.notify (which is built on the NTVFS fileserver for the callbacks) to run in the ad_member environment rather than nt4_dc and ad_dc. This is also just more realistic in any case. Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- source3/wscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index 6d5bd22ca49..48194f261a4 100644 --- a/source3/wscript +++ b/source3/wscript @@ -810,6 +810,9 @@ msg.msg_accrightslen = sizeof(fd); forced_shared_modules.extend(TO_LIST('idmap_ad idmap_rfc2307')) elif Options.options.with_ads == False: Logs.info("Building without Active Directory support (--without-ads).") + if not Options.options.without_ad_dc: + conf.fatal("Building --without-ads requires also " + "building --without-ad-dc.") else: if not use_ads_krb5: Logs.warn("Active Directory support not available: krb5 libs don't have all required features") -- cgit v1.2.1