1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s4-torture: Don't consider NONE_MAPPED an error in LookupSids3.

This commit is contained in:
Andreas Schneider 2012-07-05 14:11:51 +02:00 committed by Andreas Schneider
parent 2a46c7fff2
commit a070ce3555

View File

@ -875,12 +875,28 @@ static bool test_LookupSids3(struct dcerpc_binding_handle *b,
torture_assert_ntstatus_ok(tctx, dcerpc_lsa_LookupSids3_r(b, tctx, &r),
"LookupSids3 failed");
torture_assert_ntstatus_ok(tctx,
r.out.result,
"LookupSids3 failed");
if (!NT_STATUS_IS_OK(r.out.result)) {
if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_NONE_MAPPED)) {
torture_comment(tctx,
"LookupSids3 failed: %s - not considered as an error",
nt_errstr(r.out.result));
return true;
}
torture_assert_ntstatus_ok(tctx,
r.out.result,
"LookupSids3 failed");
return false;
}
torture_comment(tctx, "\n");
if (!test_LookupNames4(b, tctx, &names, true)) {
return false;
}
return true;
}