From: Matthias Dieter Wallnöfer Date: Thu, 24 Nov 2011 16:03:00 +0000 (+0100) Subject: s4:netlogon RPC server - dcesrv_netr_DsRGetSiteName - add a small explaination X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=9a91d7f05a702ea47495b254049a7ec409212d1b;p=obnox%2Fsamba%2Fsamba-obnox.git s4:netlogon RPC server - dcesrv_netr_DsRGetSiteName - add a small explaination NETLOGON pipe is only thought for DCs. Signed-off-by: Stefan Metzmacher --- 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);