summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-14 07:20:46 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-14 07:20:46 +0000
commite8a3825ebc4dfe55581b980507384153b99f534d (patch)
treeebf5793643e9480956b345e93c395f9e5f8b3282 /source4/torture
parent5b7f049829ec86f2ee50f6ba6443fa349aba84c2 (diff)
downloadsamba-e8a3825ebc4dfe55581b980507384153b99f534d.tar.gz
samba-e8a3825ebc4dfe55581b980507384153b99f534d.tar.bz2
samba-e8a3825ebc4dfe55581b980507384153b99f534d.zip
we can now do a level1 NetDfsEnum()
(This used to be commit f32641f73f7ff12b797378b3b533603ff1d526b5)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/dfs.c26
-rw-r--r--source4/torture/rpc/echo.c5
2 files changed, 25 insertions, 6 deletions
diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c
index 3f8d789fe8..f4bcc7a629 100644
--- a/source4/torture/rpc/dfs.c
+++ b/source4/torture/rpc/dfs.c
@@ -45,20 +45,34 @@ static BOOL test_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
struct dfs_Enum r;
- uint32 resume_handle = 0;
+ uint32 total=0;
+ struct dfs_EnumStruct e;
+ uint32 i = 0;
+ struct dfs_String s;
+ struct dfs_Enum1 e1;
+
+ e.level = 1;
+ e.e.enum1 = &e1;
+ e.e.enum1->count = 0;
+ e.e.enum1->s = &s;
+ s.str = NULL;
- r.in.name = "";
r.in.level = 1;
- r.in.buffer_size = 20000;
- r.in.resume_handle = &resume_handle;
- r.out.resume_handle = &resume_handle;
-
+ r.in.bufsize = (uint32)-1;
+ r.in.total = &total;
+ r.in.unknown = NULL;
+ r.in.info = &e;
+
status = dcerpc_dfs_Enum(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
printf("Enum failed - %s\n", nt_errstr(status));
return False;
}
+ NDR_PRINT_DEBUG(dfs_EnumStruct, r.out.info);
+
+ printf("total=%d\n", r.out.total?*r.out.total:-1);
+
return True;
}
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index c0416fdb8a..1e6328f3b4 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -197,6 +197,11 @@ BOOL torture_rpc_echo(int dummy)
return False;
}
+ if (!test_testcall(p, mem_ctx)) {
+ ret = False;
+ }
+ return ret;
+
if (!test_addone(p, mem_ctx)) {
ret = False;
}