CVS update: samba/source/libsmb

Tim Potter tpot at samba.org
Thu Nov 22 10:25:56 EST 2001


On Wed, Nov 21, 2001 at 02:43:06PM -0800, Jeremy Allison wrote:

> namequery.c		1.50.2.16 => 1.50.2.17
> 	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/namequery.c?r1=1.50.2.16&r2=1.50.2.17

@@ -1172,9 +1178,50 @@
 /********************************************************
  Get the IP address list of the PDC/BDC's of a Domain.
 *********************************************************/
+
 BOOL get_dc_list(BOOL pdc_only, char *group, struct in_addr **ip_list, int *count)
 {
-       return internal_resolve_name(group, pdc_only ? 0x1B : 0x1C, ip_list, count);
+       /*
+        * If we're looking for a PDC and it's our domain then
+        * use the 'password server' parameter.
+        */
+
+       if (pdc_only && strequal(group, lp_workgroup())) {
+               char *p;

Shouldn't we be using the password server if we are looking for a BDC as 
well?


Tim.




More information about the samba-cvs mailing list