summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-05-29 08:35:59 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-05-29 11:56:29 +1000
commita2e72ac5562d69fa40c7389a9d9d7e6551e39b41 (patch)
treea4cc36df4d695cbc8d9eb075c9e3d3de4c9e7f28 /source4/torture
parenta3f619f9d9f0e6425c453a9e8dc97794e74c4a42 (diff)
downloadsamba-a2e72ac5562d69fa40c7389a9d9d7e6551e39b41.tar.gz
samba-a2e72ac5562d69fa40c7389a9d9d7e6551e39b41.tar.bz2
samba-a2e72ac5562d69fa40c7389a9d9d7e6551e39b41.zip
s4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index c5050edc52..d9e4205e93 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -6335,9 +6335,14 @@ static bool test_OpenDomain(struct dcerpc_pipe *p, struct torture_context *tctx,
ret &= test_samr_handle_Close(p, tctx, handle);
switch (which_ops) {
- case TORTURE_SAMR_USER_ATTRIBUTES:
- case TORTURE_SAMR_USER_PRIVILEGES:
case TORTURE_SAMR_PASSWORDS:
+ case TORTURE_SAMR_USER_PRIVILEGES:
+ if (!torture_setting_bool(tctx, "samba3", false)) {
+ ret &= test_CreateUser2(p, tctx, &domain_handle, sid, which_ops, NULL);
+ }
+ ret &= test_CreateUser(p, tctx, &domain_handle, TEST_ACCOUNT_NAME, &user_handle, sid, which_ops, NULL, true);
+ break;
+ case TORTURE_SAMR_USER_ATTRIBUTES:
if (!torture_setting_bool(tctx, "samba3", false)) {
ret &= test_CreateUser2(p, tctx, &domain_handle, sid, which_ops, NULL);
}