summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-07-05 14:11:25 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-07-06 10:00:57 +0200
commit2a46c7fff211425bd5ff7394b70bec45c21b04fe (patch)
tree6e3ce2f25d8cb3d0e812c6196227e64b3493d168
parenteeba5ad9fa5eb5e8836847e75c300decc848ed50 (diff)
downloadsamba-2a46c7fff211425bd5ff7394b70bec45c21b04fe.tar.gz
samba-2a46c7fff211425bd5ff7394b70bec45c21b04fe.tar.bz2
samba-2a46c7fff211425bd5ff7394b70bec45c21b04fe.zip
s4-torture: Don't consider NONE_MAPPED an error in LookupNames4.
-rw-r--r--source4/torture/rpc/lsa.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index a537b36ecc..ed9bab974a 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -661,9 +661,21 @@ static bool test_LookupNames4(struct dcerpc_binding_handle *b,
torture_assert_ntstatus_ok(tctx, dcerpc_lsa_LookupNames4_r(b, tctx, &r),
"LookupNames4 failed");
- torture_assert_ntstatus_ok(tctx,
- r.out.result,
- "LookupNames4 failed");
+ if (!NT_STATUS_IS_OK(r.out.result)) {
+ if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_NONE_MAPPED)) {
+ torture_comment(tctx,
+ "LookupNames4 failed: %s - not considered as an error",
+ nt_errstr(r.out.result));
+
+ return true;
+ }
+
+ torture_assert_ntstatus_ok(tctx,
+ r.out.result,
+ "LookupNames4 failed");
+
+ return false;
+ }
if (check_result) {
torture_assert_int_equal(tctx, count, sids.count,