diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-06-11 10:33:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:59 -0500 |
commit | 1104ca33378a9677faeca0c237b917b27e36d4e2 (patch) | |
tree | 56927385074153148d1908c2d33f03891d99be03 /source4/torture/libnet | |
parent | c29896d0ae66f7ad19d32ded6d0333dbadcb51e2 (diff) | |
download | samba-1104ca33378a9677faeca0c237b917b27e36d4e2.tar.gz samba-1104ca33378a9677faeca0c237b917b27e36d4e2.tar.bz2 samba-1104ca33378a9677faeca0c237b917b27e36d4e2.zip |
r7491: libnet functions used in tests have different names now.
rafal
(This used to be commit d54bf09701b1085451479a32569849998c53c811)
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r-- | source4/torture/libnet/domain.c | 4 | ||||
-rw-r--r-- | source4/torture/libnet/userinfo.c | 20 | ||||
-rw-r--r-- | source4/torture/libnet/userman.c | 24 |
3 files changed, 24 insertions, 24 deletions
diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c index e792cad674..e36a21d2c6 100644 --- a/source4/torture/libnet/domain.c +++ b/source4/torture/libnet/domain.c @@ -29,14 +29,14 @@ static BOOL test_domainopen(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *domain_handle) { NTSTATUS status; - struct rpc_composite_domain_open io; + struct libnet_rpc_domain_open io; printf("opening domain\n"); io.in.domain_name = talloc_strdup(mem_ctx, domname->string); io.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; - status = rpc_composite_domain_open(p, mem_ctx, &io); + status = libnet_rpc_domain_open(p, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { printf("Composite domain open failed - %s\n", nt_errstr(status)); return False; diff --git a/source4/torture/libnet/userinfo.c b/source4/torture/libnet/userinfo.c index eefd939164..6dad86178f 100644 --- a/source4/torture/libnet/userinfo.c +++ b/source4/torture/libnet/userinfo.c @@ -184,7 +184,7 @@ static BOOL test_userinfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint32_t *rid) { NTSTATUS status; - struct rpc_composite_userinfo user; + struct libnet_rpc_userinfo user; struct dom_sid *user_sid; user_sid = dom_sid_add_rid(mem_ctx, domain_sid, *rid); @@ -193,10 +193,10 @@ static BOOL test_userinfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, user.in.sid = dom_sid_string(mem_ctx, user_sid); user.in.level = 5; /* this should be extended */ - printf("Testing sync rpc_composite_userinfo\n"); - status = rpc_composite_userinfo(p, mem_ctx, &user); + printf("Testing sync libnet_rpc_userinfo\n"); + status = libnet_rpc_userinfo(p, mem_ctx, &user); if (!NT_STATUS_IS_OK(status)) { - printf("Failed to call sync rpc_composite_userinfo - %s\n", nt_errstr(status)); + printf("Failed to call sync libnet_rpc_userinfo - %s\n", nt_errstr(status)); return False; } @@ -228,7 +228,7 @@ static BOOL test_userinfo_async(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, { NTSTATUS status; struct composite_context *c; - struct rpc_composite_userinfo user; + struct libnet_rpc_userinfo user; struct dom_sid *user_sid; user_sid = dom_sid_add_rid(mem_ctx, domain_sid, *rid); @@ -237,17 +237,17 @@ static BOOL test_userinfo_async(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, user.in.sid = dom_sid_string(mem_ctx, user_sid); user.in.level = 10; /* this should be extended */ - printf("Testing async rpc_composite_userinfo\n"); + printf("Testing async libnet_rpc_userinfo\n"); - c = rpc_composite_userinfo_send(p, &user, msg_handler); + c = libnet_rpc_userinfo_send(p, &user, msg_handler); if (!c) { - printf("Failed to call sync rpc_composite_userinfo_send\n"); + printf("Failed to call sync libnet_rpc_userinfo_send\n"); return False; } - status = rpc_composite_userinfo_recv(c, mem_ctx, &user); + status = libnet_rpc_userinfo_recv(c, mem_ctx, &user); if (!NT_STATUS_IS_OK(status)) { - printf("Calling async rpc_composite_userinfo failed - %s\n", nt_errstr(status)); + printf("Calling async libnet_rpc_userinfo failed - %s\n", nt_errstr(status)); return False; } 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; } |