summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-11 09:12:07 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-11 13:31:39 +0100
commit4398871d1fabcc28af7c9a2aac5c91fe4fba2fa4 (patch)
treea6df37aedcff306c02a4c1419fdf6f726652bf82 /source4/torture
parent9592366dc7537adb0662d85c34c62d32a012a801 (diff)
downloadsamba-4398871d1fabcc28af7c9a2aac5c91fe4fba2fa4.tar.gz
samba-4398871d1fabcc28af7c9a2aac5c91fe4fba2fa4.tar.bz2
samba-4398871d1fabcc28af7c9a2aac5c91fe4fba2fa4.zip
RPC-DSSYNC: fix the build after idl changes
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/dssync.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index 58ea07e36b..aeb4f2a282 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -1002,12 +1002,17 @@ static bool test_FetchNT4Data(struct torture_context *tctx,
r.out.info = &info;
r.out.level_out = &level_out;
- req.req1.unknown1 = lp_parm_int(tctx->lp_ctx, NULL, "dssync", "nt4-1", 3);
- req.req1.unknown2 = lp_parm_int(tctx->lp_ctx, NULL, "dssync", "nt4-2", 0x00004000);
+ req.req1.flags = lp_parm_int(tctx->lp_ctx, NULL,
+ "dssync", "nt4changelog_flags",
+ DRSUAPI_NT4_CHANGELOG_GET_CHANGELOG |
+ DRSUAPI_NT4_CHANGELOG_GET_SERIAL_NUMBERS);
+ req.req1.preferred_maximum_length = lp_parm_int(tctx->lp_ctx, NULL,
+ "dssync", "nt4changelog_preferred_len",
+ 0x00004000);
while (1) {
- req.req1.length = cookie.length;
- req.req1.data = cookie.data;
+ req.req1.restart_length = cookie.length;
+ req.req1.restart_data = cookie.data;
r.in.req = &req;
@@ -1034,8 +1039,8 @@ static bool test_FetchNT4Data(struct torture_context *tctx,
*r.out.level_out));
} else if (NT_STATUS_IS_OK(r.out.info->info1.status)) {
} else if (NT_STATUS_EQUAL(r.out.info->info1.status, STATUS_MORE_ENTRIES)) {
- cookie.length = r.out.info->info1.length1;
- cookie.data = r.out.info->info1.data1;
+ cookie.length = r.out.info->info1.restart_length;
+ cookie.data = r.out.info->info1.restart_data;
continue;
} else {
torture_fail(tctx,