diff options
Diffstat (limited to 'source4/torture/rpc')
-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, |