From: Andrew Bartlett Date: Wed, 24 Mar 2021 21:48:28 +0000 (+1300) Subject: build: Consolidate --with-dnsupdate with --with-ads (which implied HAVE_KRB5) X-Git-Tag: tevent-0.11.0~1380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bc1463a5c6e793ed78a77d9e513d94006dfce20;p=thirdparty%2Fsamba.git build: Consolidate --with-dnsupdate with --with-ads (which implied HAVE_KRB5) Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Mar 26 04:06:41 UTC 2021 on sn-devel-184 --- diff --git a/lib/addns/dnsutils.c b/lib/addns/dnsutils.c index 3eeb6ab9e21..d1a3173eefc 100644 --- a/lib/addns/dnsutils.c +++ b/lib/addns/dnsutils.c @@ -136,7 +136,7 @@ DNS_ERROR dns_domain_name_from_string( TALLOC_CTX *mem_ctx, char *dns_generate_keyname( TALLOC_CTX *mem_ctx ) { char *result = NULL; -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) struct GUID guid; diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index c8b18a9c281..bc42ddda9cb 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1506,7 +1506,7 @@ static WERROR check_ads_config( void ) Send a DNS update request *******************************************************************/ -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) #include "../lib/addns/dns.h" static NTSTATUS net_update_dns_internal(struct net_context *c, @@ -1741,7 +1741,7 @@ static int net_ads_join_usage(struct net_context *c, int argc, const char **argv static void _net_ads_join_dns_updates(struct net_context *c, TALLOC_CTX *ctx, struct libnet_JoinCtx *r) { -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) ADS_STRUCT *ads_dns = NULL; int ret; NTSTATUS status; @@ -2030,7 +2030,7 @@ fail: static int net_ads_dns_register(struct net_context *c, int argc, const char **argv) { -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) ADS_STRUCT *ads; ADS_STATUS status; NTSTATUS ntstatus; @@ -2129,7 +2129,7 @@ static int net_ads_dns_unregister(struct net_context *c, int argc, const char **argv) { -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) ADS_STRUCT *ads; ADS_STATUS status; NTSTATUS ntstatus; diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index 8275042f3e5..751a6c120e0 100644 --- a/source3/utils/net_dns.c +++ b/source3/utils/net_dns.c @@ -24,7 +24,7 @@ #include "../lib/addns/dns.h" #include "utils/net_dns.h" -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) /********************************************************************* *********************************************************************/ @@ -207,4 +207,4 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss ) return count; } -#endif /* defined(WITH_DNS_UPDATES) */ +#endif /* defined(HAVE_KRB5) */ diff --git a/source3/utils/net_dns.h b/source3/utils/net_dns.h index ef70fddd97c..f53e9546e23 100644 --- a/source3/utils/net_dns.h +++ b/source3/utils/net_dns.h @@ -28,7 +28,7 @@ #define DNS_UPDATE_PROBE 0x10 #define DNS_UPDATE_PROBE_SUFFICIENT 0x20 -#if defined(WITH_DNS_UPDATES) +#if defined(HAVE_KRB5) #include "../lib/addns/dns.h" @@ -38,4 +38,4 @@ DNS_ERROR DoDNSUpdate(char *pszServerName, size_t num_addrs, uint32_t flags, bool remove_host); -#endif /* defined(WITH_DNS_UPDATES) */ +#endif /* defined(HAVE_KRB5) */ diff --git a/source3/wscript b/source3/wscript index b57ad6b42a7..3ee7d0914ed 100644 --- a/source3/wscript +++ b/source3/wscript @@ -73,7 +73,6 @@ def options(opt): opt.samba_add_onoff_option('avahi', with_name="enable", without_name="disable") opt.samba_add_onoff_option('iconv') opt.samba_add_onoff_option('acl-support') - opt.samba_add_onoff_option('dnsupdate') opt.samba_add_onoff_option('syslog') opt.samba_add_onoff_option('automount') opt.samba_add_onoff_option('dmapi', default=None) # None means autodetection @@ -1067,11 +1066,6 @@ syscall(SYS_setgroups32, 0, NULL); execute=True, mandatory=True, msg="Checking whether setuidx is available") - if Options.options.with_dnsupdate: - if not conf.CONFIG_SET('HAVE_KRB5'): - Logs.warn("--with-dnsupdate=yes but gssapi support not sufficient") - else: - conf.DEFINE('WITH_DNS_UPDATES', 1) # valgrind.h or valgrind/valgrind.h is checked in lib/replace/wscript if Options.options.developer: if conf.CONFIG_SET('HAVE_VALGRIND_H') or conf.CONFIG_SET('HAVE_VALGRIND_VALGRIND_H'):