summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-27 14:25:14 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-27 15:24:43 +1000
commite88a54a87e185b44e2d216bd853e6a87bf950be6 (patch)
tree196033e4ba02df387fe8a9004ca280edd8803766
parent449708017377c3cdf814642af75d7c7f8b554a3e (diff)
downloadsamba-e88a54a87e185b44e2d216bd853e6a87bf950be6.tar.gz
samba-e88a54a87e185b44e2d216bd853e6a87bf950be6.tar.xz
samba-e88a54a87e185b44e2d216bd853e6a87bf950be6.zip
s4-netlogon: fixed breakage of dcesrv_netr_GetAnyDCName in sites patch
We should respond when we are the PDC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 856d26e964a..8681e680d39 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -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);