summaryrefslogtreecommitdiffstats
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-09-23 16:56:59 +0200
committerAndreas Schneider <asn@samba.org>2011-10-27 17:09:50 +0200
commit80e942aec955af86b197893b6ca661e3e521066d (patch)
treed5f895a1dfb6f728d2386b67d15cd1735c60afa4 /source4/torture/rpc
parentbeb42c3774d170f2b52627409aa7ae383337a090 (diff)
downloadsamba-80e942aec955af86b197893b6ca661e3e521066d.tar.gz
samba-80e942aec955af86b197893b6ca661e3e521066d.tar.xz
samba-80e942aec955af86b197893b6ca661e3e521066d.zip
s4-torture: Add domain_handle to test_join struct.
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/testjoin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index 76344e0ddf0..66342a27271 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -39,6 +39,7 @@
struct test_join {
struct dcerpc_pipe *p;
struct policy_handle user_handle;
+ struct policy_handle domain_handle;
struct libnet_JoinDomain *libnet_r;
struct dom_sid *dom_sid;
const char *dom_netbios_name;
@@ -132,7 +133,6 @@ struct test_join *torture_create_testuser_max_pwlen(struct torture_context *tort
struct samr_SetUserInfo s;
union samr_UserInfo u;
struct policy_handle handle;
- struct policy_handle domain_handle;
uint32_t access_granted;
uint32_t rid;
DATA_BLOB session_key;
@@ -266,7 +266,7 @@ struct test_join *torture_create_testuser_max_pwlen(struct torture_context *tort
o.in.connect_handle = &handle;
o.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
o.in.sid = *l.out.sid;
- o.out.domain_handle = &domain_handle;
+ o.out.domain_handle = &join->domain_handle;
status = dcerpc_samr_OpenDomain_r(b, join, &o);
if (!NT_STATUS_IS_OK(status)) {
@@ -282,7 +282,7 @@ struct test_join *torture_create_testuser_max_pwlen(struct torture_context *tort
again:
name.string = username;
- r.in.domain_handle = &domain_handle;
+ r.in.domain_handle = &join->domain_handle;
r.in.account_name = &name;
r.in.acct_flags = acct_type;
r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
@@ -297,7 +297,7 @@ again:
}
if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_USER_EXISTS)) {
- status = DeleteUser_byname(b, join, &domain_handle, name.string);
+ status = DeleteUser_byname(b, join, &join->domain_handle, name.string);
if (NT_STATUS_IS_OK(status)) {
goto again;
}