summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-09-23 16:57:25 +0200
committerAndreas Schneider <asn@samba.org>2011-10-27 17:09:50 +0200
commitb411b81642a6317f11cfb67c04fc1313ff009bea (patch)
tree9f260f9f319f77ed2bd5ff04377b08ae02188c3d /source4/torture
parent80e942aec955af86b197893b6ca661e3e521066d (diff)
downloadsamba-b411b81642a6317f11cfb67c04fc1313ff009bea.tar.gz
samba-b411b81642a6317f11cfb67c04fc1313ff009bea.tar.bz2
samba-b411b81642a6317f11cfb67c04fc1313ff009bea.zip
s4-torture: Add torture_delete_testuser().
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/testjoin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index 66342a2727..48408ed5c1 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -404,6 +404,20 @@ struct test_join *torture_create_testuser(struct torture_context *torture,
return torture_create_testuser_max_pwlen(torture, username, domain, acct_type, random_password, 255);
}
+NTSTATUS torture_delete_testuser(struct torture_context *torture,
+ struct test_join *join,
+ const char *username)
+{
+ NTSTATUS status;
+
+ status = DeleteUser_byname(join->p->binding_handle,
+ torture,
+ &join->domain_handle,
+ username);
+
+ return status;
+}
+
_PUBLIC_ struct test_join *torture_join_domain(struct torture_context *tctx,
const char *machine_name,
uint32_t acct_flags,