diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-07-30 10:43:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:24 -0500 |
commit | 50a66a2e817a362d80abe2194e79d5ec39151540 (patch) | |
tree | 707dfef18e8bba20424ad79b100417fd60326208 /source4/torture | |
parent | bd705012b82b5c6653dd70444b089c0f4fe22211 (diff) | |
download | samba-50a66a2e817a362d80abe2194e79d5ec39151540.tar.gz samba-50a66a2e817a362d80abe2194e79d5ec39151540.tar.bz2 samba-50a66a2e817a362d80abe2194e79d5ec39151540.zip |
r24083: 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
(This used to be commit db0f81734d39b228dbfcf53b911edf83a2a2fd8c)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/samr.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index aef75ea78a..8545df76ea 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -3405,9 +3405,13 @@ static BOOL test_QueryDisplayInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, 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: |