summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/userinfo.c6
-rw-r--r--source4/torture/libnet/userinfo.c6
-rw-r--r--source4/torture/libnet/userman.c2
3 files changed, 8 insertions, 6 deletions
diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c
index f8bdfbb9c2f..ec40b81df51 100644
--- a/source4/libnet/userinfo.c
+++ b/source4/libnet/userinfo.c
@@ -372,11 +372,11 @@ NTSTATUS libnet_rpc_userinfo_recv(struct composite_context *c, TALLOC_CTX *mem_c
* @return nt status code of execution
*/
-NTSTATUS libnet_rpc_userinfo(struct dcerpc_pipe *p,
+NTSTATUS libnet_rpc_userinfo(struct tevent_context *ev,
+ struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx,
struct libnet_rpc_userinfo *io)
{
- struct composite_context *c = libnet_rpc_userinfo_send(mem_ctx, p->conn->event_ctx,
- p->binding_handle, io, NULL);
+ struct composite_context *c = libnet_rpc_userinfo_send(mem_ctx, ev, b, io, NULL);
return libnet_rpc_userinfo_recv(c, mem_ctx, io);
}
diff --git a/source4/torture/libnet/userinfo.c b/source4/torture/libnet/userinfo.c
index 0a6efb029f9..897273bcc2b 100644
--- a/source4/torture/libnet/userinfo.c
+++ b/source4/torture/libnet/userinfo.c
@@ -42,12 +42,14 @@ static bool test_userinfo(struct torture_context *tctx,
user_sid = dom_sid_add_rid(mem_ctx, domain_sid, *rid);
+ ZERO_STRUCT(user);
+
user.in.domain_handle = *domain_handle;
user.in.sid = dom_sid_string(mem_ctx, user_sid);
user.in.level = level; /* this should be extended */
torture_comment(tctx, "Testing sync libnet_rpc_userinfo (SID argument)\n");
- status = libnet_rpc_userinfo(p, mem_ctx, &user);
+ status = libnet_rpc_userinfo(tctx->ev, p->binding_handle, mem_ctx, &user);
torture_assert_ntstatus_ok(tctx, status, "Calling sync libnet_rpc_userinfo() failed");
ZERO_STRUCT(user);
@@ -58,7 +60,7 @@ static bool test_userinfo(struct torture_context *tctx,
user.in.level = level;
torture_comment(tctx, "Testing sync libnet_rpc_userinfo (username argument)\n");
- status = libnet_rpc_userinfo(p, mem_ctx, &user);
+ status = libnet_rpc_userinfo(tctx->ev, p->binding_handle, mem_ctx, &user);
torture_assert_ntstatus_ok(tctx, status, "Calling sync libnet_rpc_userinfo failed");
return true;
diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c
index 521ad9981c8..4bb5193ed9d 100644
--- a/source4/torture/libnet/userman.c
+++ b/source4/torture/libnet/userman.c
@@ -284,7 +284,7 @@ static bool test_compare(struct torture_context *tctx,
info.in.domain_handle = *handle;
info.in.level = 21; /* the most rich infolevel available */
- status = libnet_rpc_userinfo(p, mem_ctx, &info);
+ status = libnet_rpc_userinfo(tctx->ev, p->binding_handle, mem_ctx, &info);
torture_assert_ntstatus_ok(tctx, status, "Failed to call sync libnet_rpc_userinfo");
i = &info.out.info.info21;