mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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 <tridge@samba.org>
This commit is contained in:
parent
ca1f7c9b73
commit
cfbd5ef8c4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user