s4-netlogon: fixed breakage of dcesrv_netr_GetAnyDCName in sites patch
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Apr 2010 04:25:14 +0000 (14:25 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 Apr 2010 05:24:43 +0000 (15:24 +1000)
We should respond when we are the PDC

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/rpc_server/netlogon/dcerpc_netlogon.c

index 856d26e964a0a7b447ee5f6468996a7481901034..8681e680d39cd065fe1f4db389782a3f1913858e 100644 (file)
@@ -1019,12 +1019,6 @@ static WERROR dcesrv_netr_GetAnyDCName(struct dcesrv_call_state *dce_call, TALLO
        }
 
        if (strcasecmp(r->in.domainname, lp_workgroup(lp_ctx)) == 0) {
-               /* well we asked for a DC of our own domain */
-               if (samdb_is_pdc(sam_ctx)) {
-                       /* we are the PDC of the specified domain */
-                       return WERR_NO_SUCH_DOMAIN;
-               }
-
                *r->out.dcname = talloc_asprintf(mem_ctx, "\\%s",
                                                lp_netbios_name(lp_ctx));
                W_ERROR_HAVE_NO_MEMORY(*r->out.dcname);