From: Andrew Bartlett Date: Wed, 24 Jul 2019 04:22:12 +0000 (+1200) Subject: build: Require --without-ad-dc for --without-ads X-Git-Tag: ldb-2.2.0~1287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=607c9ab307db36aee0604d209a13b45d28c63d9b;p=thirdparty%2Fsamba.git 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 --- diff --git a/script/autobuild.py b/script/autobuild.py index dc46bcdd129..b9824b8bd3f 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -296,7 +296,7 @@ tasks = { "samba-nt4": [ ("random-sleep", random_sleep(300, 900)), - ("configure", "./configure.developer --without-ads --with-selftest-prefix=./bin/ab" + samba_configure_params), + ("configure", "./configure.developer --without-ads --without-ad-dc --with-selftest-prefix=./bin/ab" + samba_configure_params), ("make", "make -j"), ("test", make_test(include_envs=[ "nt4_dc", diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 208c89cb071..9e44c091147 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -745,6 +745,8 @@ for t in tests: elif t == "rpc.samba3.pipes_supported_interfaces": plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') + elif t == "rpc.spoolss.notify": + plansmbtorture4testsuite(t, "ad_member", '//$SERVER_IP/tmp -U$DC_USERNAME%$DC_PASSWORD') else: plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD') 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")