From: Günther Deschner Date: Fri, 11 Feb 2011 10:16:08 +0000 (+0100) Subject: s3-libsmb: fix ifdef check in ads_dc_name. X-Git-Tag: tevent-0.9.11~730 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4bf69285b25f709740fc688b304e2f000112380;p=thirdparty%2Fsamba.git s3-libsmb: fix ifdef check in ads_dc_name. We are accessing an LDAP structure here, so we better check that LDAP support was there as well as Kerberos support. Guenther --- diff --git a/source3/libsmb/namequery_dc.c b/source3/libsmb/namequery_dc.c index 5d44719a8e8..23850e3e9f1 100644 --- a/source3/libsmb/namequery_dc.c +++ b/source3/libsmb/namequery_dc.c @@ -101,7 +101,7 @@ static bool ads_dc_name(const char *domain, continue; } -#ifdef HAVE_KRB5 +#ifdef HAVE_ADS if (is_our_primary_domain(domain) && (ads->config.flags & NBT_SERVER_KDC)) { if (ads_closest_dc(ads)) { /* We're going to use this KDC for this realm/domain.