r26145: Fix server side of wkssvc_NetWkstaTransportEnum.
authorGünther Deschner <gd@samba.org>
Tue, 27 Nov 2007 08:58:18 +0000 (09:58 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:46:23 +0000 (05:46 +0100)
Guenther

source/rpc_server/wkssvc/dcesrv_wkssvc.c
source/samba4-knownfail

index dfd3d04d11d48fbecfda91935d383fd7d3a57e19..85acfcf98d1870fe901e478f002d76bd3978a738 100644 (file)
@@ -138,19 +138,19 @@ static WERROR dcesrv_WKSSVC_NETRWKSTAUSERSETINFO(struct dcesrv_call_state *dce_c
 static WERROR dcesrv_wkssvc_NetWkstaTransportEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
                       struct wkssvc_NetWkstaTransportEnum *r)
 {
-       r->out.level = r->in.level;
-       r->out.totalentries = 0;
+       r->out.total_entries = 0;
        r->out.resume_handle = NULL;
 
-       switch (r->in.level) {
+       switch (r->in.info->level) {
        case 0:
-               r->out.ctr = talloc(mem_ctx, union wkssvc_NetWkstaTransportCtr);
-               W_ERROR_HAVE_NO_MEMORY(r->out.ctr);
-               r->out.ctr->ctr0 = talloc(mem_ctx, struct wkssvc_NetWkstaTransportCtr0);
-               W_ERROR_HAVE_NO_MEMORY(r->out.ctr->ctr0);
+               r->out.info = talloc(mem_ctx, struct wkssvc_NetWkstaTransportInfo);
+               W_ERROR_HAVE_NO_MEMORY(r->out.info);
+               r->out.info->level = r->in.info->level;
+               r->out.info->ctr.ctr0 = talloc(mem_ctx, struct wkssvc_NetWkstaTransportCtr0);
+               W_ERROR_HAVE_NO_MEMORY(r->out.info->ctr.ctr0);
 
-               r->out.ctr->ctr0->count = 0;
-               r->out.ctr->ctr0->array = NULL;
+               r->out.info->ctr.ctr0->count = 0;
+               r->out.info->ctr.ctr0->array = NULL;
 
                return WERR_NOT_SUPPORTED;
 
@@ -162,21 +162,21 @@ static WERROR dcesrv_wkssvc_NetWkstaTransportEnum(struct dcesrv_call_state *dce_
 }
 
 
-/* 
-  WKSSVC_NETRWKSTATRANSPORTADD 
+/*
+  wkssvc_NetrWkstaTransportAdd
 */
-static WERROR dcesrv_WKSSVC_NETRWKSTATRANSPORTADD(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
-                      struct WKSSVC_NETRWKSTATRANSPORTADD *r)
+static WERROR dcesrv_wkssvc_NetrWkstaTransportAdd(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct wkssvc_NetrWkstaTransportAdd *r)
 {
        DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
 }
 
 
-/* 
-  WKSSVC_NETRWKSTATRANSPORTDEL 
+/*
+  wkssvc_NetrWkstaTransportDel
 */
-static WERROR dcesrv_WKSSVC_NETRWKSTATRANSPORTDEL(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
-                      struct WKSSVC_NETRWKSTATRANSPORTDEL *r)
+static WERROR dcesrv_wkssvc_NetrWkstaTransportDel(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+                      struct wkssvc_NetrWkstaTransportDel *r)
 {
        DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
 }
index 2b5e28834594f31505036525a26aa877e5a81cf3..cc91db26b72d40036c86e31acac1b5bc6d2c9652 100644 (file)
@@ -6,8 +6,6 @@ BASE-DELETE.*/deltest20b
 RAW-OPLOCK.*/OPLOCK
 RPC-WINREG
 LOCAL-REGISTRY.*/security # Not implemented yet
-RPC-WKSSVC.*NetWkstaGetInfo
-RPC-WKSSVC.*NetWkstaTransportEnum
 RPC-HANDLES.*/lsarpc-shared
 RPC-HANDLES.*/mixed-shared
 RPC-EPMAPPER.*/Insert