summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/unixinfo.c15
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;