From 859f3cdd4a9d282594f195b032a65ea1c2db2703 Mon Sep 17 00:00:00 2001 From: Anatoliy Atanasov Date: Thu, 23 Sep 2010 11:45:16 -0700 Subject: s4/eventlog6: Add dummy implementation for calls 0x5 and 0xB The code is enough to let us run all dcdiag tests against samba4 server --- source4/rpc_server/eventlog/dcesrv_eventlog6.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/eventlog/dcesrv_eventlog6.c b/source4/rpc_server/eventlog/dcesrv_eventlog6.c index 002100ae1f..26b0b498f7 100644 --- a/source4/rpc_server/eventlog/dcesrv_eventlog6.c +++ b/source4/rpc_server/eventlog/dcesrv_eventlog6.c @@ -81,7 +81,11 @@ static WERROR dcesrv_eventlog6_EvtRpcRegisterControllableOperation(struct dcesrv static WERROR dcesrv_eventlog6_EvtRpcRegisterLogQuery(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcRegisterLogQuery *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + r->out.handle = dcesrv_handle_new(dce_call->context, 0); + W_ERROR_HAVE_NO_MEMORY(r->out.handle); + r->out.opControl = dcesrv_handle_new(dce_call->context, 0); + W_ERROR_HAVE_NO_MEMORY(r->out.opControl); + return WERR_OK; } @@ -141,7 +145,7 @@ static WERROR dcesrv_eventlog6_EvtRpcMessageRenderDefault(struct dcesrv_call_sta static WERROR dcesrv_eventlog6_EvtRpcQueryNext(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct eventlog6_EvtRpcQueryNext *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + return WERR_OK; } -- cgit