From 57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 14 Nov 2003 07:56:43 +0000 Subject: * fixed lsa_LookupPrivName * added levels 2 and 3 of dfs_Enum (This used to be commit 3fa61c19826cd1415f561e1e5c40adcc59d4abf2) --- source4/torture/rpc/dfs.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'source4/torture/rpc/dfs.c') diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c index f4bcc7a6296..5c1b2f2b4e3 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)) { -- cgit