diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-27 14:25:14 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-27 15:24:43 +1000 |
commit | e88a54a87e185b44e2d216bd853e6a87bf950be6 (patch) | |
tree | 196033e4ba02df387fe8a9004ca280edd8803766 /source4/rpc_server/netlogon | |
parent | 449708017377c3cdf814642af75d7c7f8b554a3e (diff) | |
download | samba-e88a54a87e185b44e2d216bd853e6a87bf950be6.tar.gz samba-e88a54a87e185b44e2d216bd853e6a87bf950be6.tar.bz2 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>
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 6 |
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 856d26e964..8681e680d3 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); |