return True;
}
-#ifdef WITH_ADS
if (sec == SEC_ADS) {
/* We need to make sure we know the local site before
doing any DNS queries, as this will restrict the
We deliberately don't care about the
return here. */
get_dc_name(domain->name, lp_realm(), dcname, &ip);
- }
-#endif
-
- /* try standard netbios queries first */
- get_sorted_dc_list(domain->name, &ip_list, &iplist_size, False);
+ /* Now do the site-specific AD dns lookup. */
+ get_sorted_dc_list(domain->alt_name, &ip_list, &iplist_size, True);
+ }
- /* check for security = ads and use DNS if we can */
+ /* try standard netbios queries if no ADS */
- if ( iplist_size==0 && sec == SEC_ADS )
- get_sorted_dc_list(domain->alt_name, &ip_list, &iplist_size, True);
+ if (iplist_size==0)
+ get_sorted_dc_list(domain->name, &ip_list, &iplist_size, False);
/* FIXME!! this is where we should re-insert the GETDC requests --jerry */