svn commit: samba r24083 - in
branches/SAMBA_4_0/source/torture/rpc: .
abartlet at samba.org
abartlet at samba.org
Mon Jul 30 10:43:51 GMT 2007
Author: abartlet
Date: 2007-07-30 10:43:50 +0000 (Mon, 30 Jul 2007)
New Revision: 24083
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24083
Log:
Don't fail the test (looking for the user in the enum) if we didn't
create the user in the first place.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/torture/rpc/samr.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samr.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samr.c 2007-07-30 10:37:33 UTC (rev 24082)
+++ branches/SAMBA_4_0/source/torture/rpc/samr.c 2007-07-30 10:43:50 UTC (rev 24083)
@@ -3405,9 +3405,13 @@
ret = False;
}
if (!seen_testuser) {
- printf("Didn't find test user " TEST_ACCOUNT_NAME " in enumeration of %s\n",
- dom_info.out.info->info2.domain_name.string);
- ret = False;
+ struct policy_handle user_handle;
+ if (NT_STATUS_IS_OK(test_OpenUser_byname(p, mem_ctx, handle, TEST_ACCOUNT_NAME, &user_handle))) {
+ printf("Didn't find test user " TEST_ACCOUNT_NAME " in enumeration of %s\n",
+ dom_info.out.info->info2.domain_name.string);
+ ret = False;
+ test_samr_handle_Close(p, mem_ctx, &user_handle);
+ }
}
break;
case 3:
More information about the samba-cvs
mailing list