diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-01-14 12:17:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:52 -0500 |
commit | 0eb941254ceca5b545f8451465e59ee92e45e4c3 (patch) | |
tree | a8a9a6cbd8b6b305668772810cd594a1c1c6fab4 /source3/nsswitch/winbindd_cm.c | |
parent | 8a24c39d76fc599874037fee8997a7cb7be996cd (diff) | |
download | samba-0eb941254ceca5b545f8451465e59ee92e45e4c3.tar.gz samba-0eb941254ceca5b545f8451465e59ee92e45e4c3.tar.xz samba-0eb941254ceca5b545f8451465e59ee92e45e4c3.zip |
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 used to be commit 61466f38429ba67ace3e84c870a0f913f64d122c)
Diffstat (limited to 'source3/nsswitch/winbindd_cm.c')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index 8a11dfbc30..3b7459ab1d 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -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); } |