diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-12 11:25:01 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-16 15:35:26 +0100 |
commit | 6591713d2679047e0551055960370ee8f47256cd (patch) | |
tree | e2d0042cf59a0673fb3d6bd5f50a3ab91ee4fcb4 /source4/torture/rpc | |
parent | e55a9758603d135ac3c83cbd96c24e557d9e4040 (diff) | |
download | samba-6591713d2679047e0551055960370ee8f47256cd.tar.gz samba-6591713d2679047e0551055960370ee8f47256cd.tar.bz2 samba-6591713d2679047e0551055960370ee8f47256cd.zip |
s4:torture/rpc/unixinfo.c: make use of dcerpc_binding_handle stubs
metze
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/unixinfo.c | 15 |
1 files 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; i<num_uids; i++) { uids[i] = i; @@ -79,7 +82,7 @@ static bool test_getpwuid(struct torture_context *tctx, r.out.count = &num_uids; r.out.infos = talloc_array(tctx, struct unixinfo_GetPWUidInfo, num_uids); - result = dcerpc_unixinfo_GetPWUid(p, tctx, &r); + result = dcerpc_unixinfo_GetPWUid_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, result, "GetPWUid failed"); @@ -95,12 +98,13 @@ static bool test_sidtogid(struct torture_context *tctx, struct dcerpc_pipe *p) struct unixinfo_SidToGid r; struct dom_sid *sid; uint64_t gid; + 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.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; |