summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorErick Nascimento <erick.nogueira.nascimento@gmail.com>2009-11-11 18:25:13 -0200
committerAndrew Tridgell <tridge@samba.org>2009-11-14 12:11:02 +1100
commita3632f22ec228f4e74e819305bb4c1c5aeca293c (patch)
tree4966485d6843e3207af91f2403004dc48a3bf883 /source4/rpc_server
parent5377d5f8946cd7fe3aa17f827eb46a9efa413ade (diff)
downloadsamba-a3632f22ec228f4e74e819305bb4c1c5aeca293c.tar.gz
samba-a3632f22ec228f4e74e819305bb4c1c5aeca293c.tar.bz2
samba-a3632f22ec228f4e74e819305bb4c1c5aeca293c.zip
s4-drs: DsExecuteKCC() implementation
I implemented the DsExecuteKCC() handling code on kccsrv_execute_kcc(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/drsuapi/dcesrv_drsuapi.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
index b5b77a0bf7..3d92880162 100644
--- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
+++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
@@ -796,7 +796,16 @@ static WERROR dcesrv_drsuapi_DsGetDomainControllerInfo(struct dcesrv_call_state
static WERROR dcesrv_drsuapi_DsExecuteKCC(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct drsuapi_DsExecuteKCC *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ WERROR status;
+ status = drs_security_level_check(dce_call, "DsExecuteKCC");
+
+ if (!W_ERROR_IS_OK(status)) {
+ return status;
+ }
+
+ dcesrv_irpc_forward_rpc_call(dce_call, mem_ctx, r, NDR_DRSUAPI_DSEXECUTEKCC,
+ &ndr_table_drsuapi, "kccsrv", "DsExecuteKCC");
+ return WERR_OK;
}