svn commit: samba r4732 - in branches/SAMBA_3_0/source/nsswitch: .
vlendec at samba.org
vlendec at samba.org
Fri Jan 14 12:17:19 GMT 2005
Author: vlendec
Date: 2005-01-14 12:17:18 +0000 (Fri, 14 Jan 2005)
New Revision: 4732
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4732
Log:
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
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2005-01-14 08:14:22 UTC (rev 4731)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2005-01-14 12:17:18 UTC (rev 4732)
@@ -557,6 +557,12 @@
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);
}
More information about the samba-cvs
mailing list