summaryrefslogtreecommitdiffstats
path: root/source4/torture/rpc/dfs.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-14 07:56:43 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-14 07:56:43 +0000
commit57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c (patch)
tree3d198584168ff25d4919f5476e8a3f361dc7b9b8 /source4/torture/rpc/dfs.c
parent565fd2da7613475e6f083e6257cf61a9089f72fc (diff)
downloadsamba-57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c.tar.gz
samba-57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c.tar.xz
samba-57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c.zip
* fixed lsa_LookupPrivName
* added levels 2 and 3 of dfs_Enum (This used to be commit 3fa61c19826cd1415f561e1e5c40adcc59d4abf2)
Diffstat (limited to 'source4/torture/rpc/dfs.c')
-rw-r--r--source4/torture/rpc/dfs.c19
1 files changed, 10 insertions, 9 deletions
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)) {