From 9a91d7f05a702ea47495b254049a7ec409212d1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 24 Nov 2011 17:03:00 +0100 Subject: [PATCH] s4:netlogon RPC server - dcesrv_netr_DsRGetSiteName - add a small explaination NETLOGON pipe is only thought for DCs. Signed-off-by: Stefan Metzmacher --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index 125fb3859eb..6d6cfe031ac 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); -- 2.11.4.GIT