s3-libsmb: fix ifdef check in ads_dc_name.
authorGünther Deschner <gd@samba.org>
Fri, 11 Feb 2011 10:16:08 +0000 (11:16 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 11 Feb 2011 11:22:41 +0000 (12:22 +0100)
We are accessing an LDAP structure here, so we better check that LDAP support
was there as well as Kerberos support.

Guenther

source3/libsmb/namequery_dc.c

index 5d44719a8e8adbd7890edefbbd6efcb8516fd4e6..23850e3e9f1432abd0400a7923f6a12bcb3de565 100644 (file)
@@ -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.