1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r4732: Even if we have 'password server' set, we need to look up the native DC name

via netbios, as the user might have set an IP address or a fqdn.

Volker
This commit is contained in:
Volker Lendecke 2005-01-14 12:17:18 +00:00 committed by Gerald (Jerry) Carter
parent 340d7f3173
commit 61466f3842

View File

@ -557,6 +557,12 @@ static BOOL get_dcs(TALLOC_CTX *mem_ctx, const struct winbindd_domain *domain,
if (!resolve_name(dcname, &ip, 0x20))
continue;
/* Even if we got the dcname, double check the name to use for
* the netlogon auth2 */
if (!name_status_find(domain->name, 0x1c, 0x20, ip, dcname))
continue;
add_one_dc_unique(mem_ctx, domain->name, dcname, ip,
dcs, num_dcs);
}