summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/userman.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/libnet/userman.c')
-rw-r--r--source4/torture/libnet/userman.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c
index be87c1373b..b308bfa0b5 100644
--- a/source4/torture/libnet/userman.c
+++ b/source4/torture/libnet/userman.c
@@ -84,14 +84,14 @@ static BOOL test_useradd(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
BOOL ret = True;
- struct rpc_composite_useradd user;
+ struct libnet_rpc_useradd user;
user.in.domain_handle = *domain_handle;
user.in.username = name;
- printf("Testing rpc_composite_useradd\n");
+ printf("Testing libnet_rpc_useradd\n");
- status = rpc_composite_useradd(p, mem_ctx, &user);
+ status = libnet_rpc_useradd(p, mem_ctx, &user);
if (!NT_STATUS_IS_OK(status)) {
printf("Failed to call sync rpc_composite_userinfo - %s\n", nt_errstr(status));
return False;
@@ -116,22 +116,22 @@ static BOOL test_useradd_async(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
struct composite_context *c;
- struct rpc_composite_useradd user;
+ struct libnet_rpc_useradd user;
user.in.domain_handle = *handle;
user.in.username = username;
- printf("Testing async rpc_composite_useradd\n");
+ printf("Testing async libnet_rpc_useradd\n");
- c = rpc_composite_useradd_send(p, &user, msg_handler);
+ c = libnet_rpc_useradd_send(p, &user, msg_handler);
if (!c) {
- printf("Failed to call async rpc_composite_useradd\n");
+ printf("Failed to call async libnet_rpc_useradd\n");
return False;
}
- status = rpc_composite_useradd_recv(c, mem_ctx, &user);
+ status = libnet_rpc_useradd_recv(c, mem_ctx, &user);
if (!NT_STATUS_IS_OK(status)) {
- printf("Calling async rpc_composite_useradd failed - %s\n", nt_errstr(status));
+ printf("Calling async libnet_rpc_useradd failed - %s\n", nt_errstr(status));
return False;
}
@@ -256,14 +256,14 @@ static BOOL test_userdel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, const char *username)
{
NTSTATUS status;
- struct rpc_composite_userdel user;
+ struct libnet_rpc_userdel user;
user.in.domain_handle = *handle;
user.in.username = username;
- status = rpc_composite_userdel(p, mem_ctx, &user);
+ status = libnet_rpc_userdel(p, mem_ctx, &user);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to call sync rpc_composite_userdel - %s\n", nt_errstr(status));
+ printf("Failed to call sync libnet_rpc_userdel - %s\n", nt_errstr(status));
return False;
}