Author: jerry Date: 2006-05-23 18:51:03 +0000 (Tue, 23 May 2006) New Revision: 15842
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15842 Log: patch from volker to instruct winbindd to find a trusted DC on its own when runing on a Samba DC (since we don't implement the getdcname() call that well Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_util.c trunk/source/nsswitch/winbindd_util.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_util.c =================================================================== --- branches/SAMBA_3_0/source/nsswitch/winbindd_util.c 2006-05-23 18:40:07 UTC (rev 15841) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_util.c 2006-05-23 18:51:03 UTC (rev 15842) @@ -363,7 +363,7 @@ state->continuation = continuation; state->private_data = private_data; - if (domain->primary) { + if (IS_DC || domain->primary) { /* The primary domain has to find the DC name itself */ request->cmd = WINBINDD_INIT_CONNECTION; fstrcpy(request->domain_name, domain->name); Modified: trunk/source/nsswitch/winbindd_util.c =================================================================== --- trunk/source/nsswitch/winbindd_util.c 2006-05-23 18:40:07 UTC (rev 15841) +++ trunk/source/nsswitch/winbindd_util.c 2006-05-23 18:51:03 UTC (rev 15842) @@ -363,7 +363,7 @@ state->continuation = continuation; state->private_data = private_data; - if (domain->primary) { + if (IS_DC || domain->primary) { /* The primary domain has to find the DC name itself */ request->cmd = WINBINDD_INIT_CONNECTION; fstrcpy(request->domain_name, domain->name);