git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4497080
)
s4-netlogon: fixed breakage of dcesrv_netr_GetAnyDCName in sites patch
author
Andrew Tridgell
<tridge@samba.org>
Tue, 27 Apr 2010 04:25:14 +0000
(14:25 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/rpc_server/netlogon/dcerpc_netlogon.c
b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 856d26e964a0a7b447ee5f6468996a7481901034..8681e680d39cd065fe1f4db389782a3f1913858e 100644
(file)
--- 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);