summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-06-26 21:21:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:33 -0500
commit1db2f0d3a19913a460bec9eb516b4d96e9a3e595 (patch)
tree639af5454ca95cfb5d3cbc1000e9ae3d5052281f
parent7414c0206f33446576d317643674cce347d069bc (diff)
downloadsamba-1db2f0d3a19913a460bec9eb516b4d96e9a3e595.tar.gz
samba-1db2f0d3a19913a460bec9eb516b4d96e9a3e595.tar.bz2
samba-1db2f0d3a19913a460bec9eb516b4d96e9a3e595.zip
r16533: Perform a cleanup after testing. Also, add changed name argument.
This test currently triggers internal corruption in ldb database, according to status code returned. I'm investigating win servers behaviour here. rafal (This used to be commit c73f4e11e4747b907dffafed09d354e12307435a)
-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);