summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/dfs.c19
-rw-r--r--source4/torture/rpc/lsa.c3
2 files changed, 11 insertions, 11 deletions
diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c
index f4bcc7a629..5c1b2f2b4e 100644
--- a/source4/torture/rpc/dfs.c
+++ b/source4/torture/rpc/dfs.c
@@ -48,20 +48,21 @@ static BOOL test_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
uint32 total=0;
struct dfs_EnumStruct e;
uint32 i = 0;
- struct dfs_String s;
- struct dfs_Enum1 e1;
+ struct dfs_Info1 s;
+ struct dfs_EnumArray1 e2;
- e.level = 1;
- e.e.enum1 = &e1;
- e.e.enum1->count = 0;
- e.e.enum1->s = &s;
- s.str = NULL;
-
- r.in.level = 1;
+ r.in.level = 3;
r.in.bufsize = (uint32)-1;
r.in.total = &total;
r.in.unknown = NULL;
r.in.info = &e;
+
+ e.level = r.in.level;
+ e.e.info1 = &e2;
+ e.e.info1->count = 0;
+ e.e.info1->s = &s;
+ s.path = NULL;
+
status = dcerpc_dfs_Enum(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index 10a2545b96..14db7e26e6 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -256,8 +256,7 @@ static BOOL test_LookupPrivName(struct dcerpc_pipe *p,
struct lsa_LookupPrivName r;
r.in.handle = handle;
- r.in.luid_high = luid->high;
- r.in.luid_low = luid->low;
+ r.in.luid = luid;
status = dcerpc_lsa_LookupPrivName(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {