mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
always make winbindd try for the PDC first before trying for a BDC
this prevents propogation delays in the SAM between the PDC and BDCs (This used to be commit 967cb3ed0c3190f3e95a227e4d998a7312b5990b)
This commit is contained in:
parent
db4c62d7ed
commit
87bba35a62
@ -140,11 +140,13 @@ static BOOL cm_get_dc_name(const char *domain, fstring srv_name, struct in_addr
|
||||
|
||||
DLIST_ADD(get_dc_name_cache, dcc);
|
||||
|
||||
/* Lookup domain controller name */
|
||||
|
||||
if (!get_dc_list(False, domain, &ip_list, &count)) {
|
||||
DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
|
||||
return False;
|
||||
/* Lookup domain controller name. Try the real PDC first to avoid
|
||||
SAM sync delays */
|
||||
if (!get_dc_list(True, domain, &ip_list, &count)) {
|
||||
if (!get_dc_list(False, domain, &ip_list, &count)) {
|
||||
DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
|
||||
return False;
|
||||
}
|
||||
}
|
||||
|
||||
/* Pick a nice close server */
|
||||
|
Loading…
x
Reference in New Issue
Block a user