summaryrefslogtreecommitdiffstats
path: root/source4/rpc_server/netlogon
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-11-24 17:03:00 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-23 10:36:33 +0100
commit9a91d7f05a702ea47495b254049a7ec409212d1b (patch)
treebf96a4a7f963e2235fa521f2b5e45876c868e706 /source4/rpc_server/netlogon
parent2bc7b8f4c9992f5f825d8328e0353f793d7e7ebf (diff)
downloadsamba-9a91d7f05a702ea47495b254049a7ec409212d1b.tar.gz
samba-9a91d7f05a702ea47495b254049a7ec409212d1b.tar.xz
samba-9a91d7f05a702ea47495b254049a7ec409212d1b.zip
s4:netlogon RPC server - dcesrv_netr_DsRGetSiteName - add a small explaination
NETLOGON pipe is only thought for DCs. Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 125fb3859e..6d6cfe031a 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1296,6 +1296,11 @@ static WERROR dcesrv_netr_DsRGetSiteName(struct dcesrv_call_state *dce_call, TAL
return WERR_DS_UNAVAILABLE;
}
+ /*
+ * We assume to be a DC when we get called over NETLOGON. Hence we
+ * get our site name always by using "samdb_server_site_name()"
+ * and not "samdb_client_site_name()".
+ */
*r->out.site = samdb_server_site_name(sam_ctx, mem_ctx);
W_ERROR_HAVE_NO_MEMORY(*r->out.site);