From 6591713d2679047e0551055960370ee8f47256cd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 12 Mar 2010 11:25:01 +0100 Subject: s4:torture/rpc/unixinfo.c: make use of dcerpc_binding_handle stubs metze --- source4/torture/rpc/unixinfo.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source4/torture/rpc/unixinfo.c b/source4/torture/rpc/unixinfo.c index 6f18f24a6d..607c1c0adb 100644 --- a/source4/torture/rpc/unixinfo.c +++ b/source4/torture/rpc/unixinfo.c @@ -32,12 +32,13 @@ static bool test_sidtouid(struct torture_context *tctx, struct dcerpc_pipe *p) struct unixinfo_SidToUid r; struct dom_sid *sid; uint64_t uid; + struct dcerpc_binding_handle *b = p->binding_handle; sid = dom_sid_parse_talloc(tctx, "S-1-5-32-1234-5432"); r.in.sid = *sid; r.out.uid = &uid; - status = dcerpc_unixinfo_SidToUid(p, tctx, &r); + status = dcerpc_unixinfo_SidToUid_r(b, tctx, &r); if (NT_STATUS_EQUAL(NT_STATUS_NONE_MAPPED, status)) { } else torture_assert_ntstatus_ok(tctx, status, "SidToUid failed"); @@ -51,11 +52,12 @@ static bool test_uidtosid(struct torture_context *tctx, struct dcerpc_pipe *p) { struct unixinfo_UidToSid r; struct dom_sid sid; + struct dcerpc_binding_handle *b = p->binding_handle; r.in.uid = 1000; r.out.sid = &sid; - torture_assert_ntstatus_ok(tctx, dcerpc_unixinfo_UidToSid(p, tctx, &r), + torture_assert_ntstatus_ok(tctx, dcerpc_unixinfo_UidToSid_r(b, tctx, &r), "UidToSid failed"); return true; @@ -69,6 +71,7 @@ static bool test_getpwuid(struct torture_context *tctx, uint32_t i; struct unixinfo_GetPWUid r; NTSTATUS result; + struct dcerpc_binding_handle *b = p->binding_handle; for (i=0; ibinding_handle; sid = dom_sid_parse_talloc(tctx, "S-1-5-32-1234-5432"); r.in.sid = *sid; r.out.gid = &gid; - status = dcerpc_unixinfo_SidToGid(p, tctx, &r); + status = dcerpc_unixinfo_SidToGid_r(b, tctx, &r); if (NT_STATUS_EQUAL(NT_STATUS_NONE_MAPPED, status)) { } else torture_assert_ntstatus_ok(tctx, status, "SidToGid failed"); @@ -114,11 +118,12 @@ static bool test_gidtosid(struct torture_context *tctx, struct dcerpc_pipe *p) { struct unixinfo_GidToSid r; struct dom_sid sid; + struct dcerpc_binding_handle *b = p->binding_handle; r.in.gid = 1000; r.out.sid = &sid; - torture_assert_ntstatus_ok(tctx, dcerpc_unixinfo_GidToSid(p, tctx, &r), + torture_assert_ntstatus_ok(tctx, dcerpc_unixinfo_GidToSid_r(b, tctx, &r), "GidToSid failed"); return true; -- cgit