1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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)
This commit is contained in:
Andrew Bartlett 2007-07-30 10:43:50 +00:00 committed by Gerald (Jerry) Carter
parent bd705012b8
commit 50a66a2e81

View File

@ -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: