summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/libnet/libnet_user.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c
index 4f1de6ed40..a611480d9f 100644
--- a/source4/torture/libnet/libnet_user.c
+++ b/source4/torture/libnet/libnet_user.c
@@ -331,8 +331,10 @@ BOOL torture_modifyuser(struct torture_context *torture)
mem_ctx = talloc_init("test_modifyuser");
+ ZERO_STRUCT(req);
req.in.user_name = TEST_USERNAME;
req.in.domain_name = lp_workgroup();
+ req.in.account_name = TEST_CHANGEDUSERNAME;
status = libnet_ModifyUser(ctx, mem_ctx, &req);
if (!NT_STATUS_IS_OK(status)) {
@@ -340,6 +342,11 @@ BOOL torture_modifyuser(struct torture_context *torture)
return False;
}
+ if (!test_cleanup(ctx->samr_pipe, mem_ctx, &ctx->domain.handle, TEST_CHANGEDUSERNAME)) {
+ printf("cleanup failed\n");
+ return False;
+ }
+
done:
talloc_free(prep_mem_ctx);
talloc_free(mem_ctx);