s4/eventlog6: Add dummy implementation for calls 0x5 and 0xB
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 23 Sep 2010 18:45:16 +0000 (11:45 -0700)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 23 Sep 2010 20:34:09 +0000 (13:34 -0700)
The code is enough to let us run all dcdiag tests against samba4 server

source4/rpc_server/eventlog/dcesrv_eventlog6.c

index 002100ae1f194533ec4e0328cca248877e74b458..26b0b498f78b5bf1f2f263407341caad4e8e11fc 100644 (file)
@@ -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;
 }