diff options
author | Andreas Schneider <asn@samba.org> | 2011-09-23 16:57:25 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-10-27 17:09:50 +0200 |
commit | b411b81642a6317f11cfb67c04fc1313ff009bea (patch) | |
tree | 9f260f9f319f77ed2bd5ff04377b08ae02188c3d /source4 | |
parent | 80e942aec955af86b197893b6ca661e3e521066d (diff) | |
download | samba-b411b81642a6317f11cfb67c04fc1313ff009bea.tar.gz samba-b411b81642a6317f11cfb67c04fc1313ff009bea.tar.bz2 samba-b411b81642a6317f11cfb67c04fc1313ff009bea.zip |
s4-torture: Add torture_delete_testuser().
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/testjoin.c | 14 |
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, |