From cfbd5ef8c401e316fe5659bb4360e30b6b8096d1 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 21 Apr 2010 17:54:06 +0200 Subject: s4:netlogon RPC server - we don't need "are we DC" proofs When we aren't a DC we shouldn't have the netlogon pipe available. [MS-NRPC 1.3] says that we can only have DCs on the server side. Signed-off-by: Andrew Tridgell --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index c7bbbb3701..856d26e964 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -2115,10 +2115,6 @@ static WERROR dcesrv_netr_DsRGetForestTrustInformation(struct dcesrv_call_state struct ldb_context *sam_ctx; WERROR werr; - if (lp_server_role(lp_ctx) != ROLE_DOMAIN_CONTROLLER) { - return WERR_CALL_NOT_IMPLEMENTED; - } - if (r->in.flags & 0xFFFFFFFE) { return WERR_INVALID_FLAGS; } @@ -2178,10 +2174,6 @@ static NTSTATUS dcesrv_netr_GetForestTrustInformation(struct dcesrv_call_state * NTSTATUS status; WERROR werr; - if (lp_server_role(lp_ctx) != ROLE_DOMAIN_CONTROLLER) { - return NT_STATUS_NOT_IMPLEMENTED; - } - status = dcesrv_netr_creds_server_step_check(dce_call, mem_ctx, r->in.computer_name, -- cgit