diff options
author | Andreas Schneider <asn@samba.org> | 2012-07-05 14:11:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-07-06 10:00:57 +0200 |
commit | a070ce35557d8f51aff6fa13a65c1c86b5631f2a (patch) | |
tree | dbcc360e57a107f44435bcb6f49ab94a316173cc /source4/torture/rpc | |
parent | 2a46c7fff211425bd5ff7394b70bec45c21b04fe (diff) | |
download | samba-a070ce35557d8f51aff6fa13a65c1c86b5631f2a.tar.gz samba-a070ce35557d8f51aff6fa13a65c1c86b5631f2a.tar.bz2 samba-a070ce35557d8f51aff6fa13a65c1c86b5631f2a.zip |
s4-torture: Don't consider NONE_MAPPED an error in LookupSids3.
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/lsa.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index ed9bab974a..942dd5234b 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -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; } |