s4-torture: Don't consider NONE_MAPPED an error in LookupNames4.
authorAndreas Schneider <asn@samba.org>
Thu, 5 Jul 2012 12:11:25 +0000 (14:11 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 6 Jul 2012 08:00:57 +0000 (10:00 +0200)
source4/torture/rpc/lsa.c

index a537b36ecc5a759a3f877c185e7baef2d29a91fb..ed9bab974a330f99883cca4dae4b8f408cde0d03 100644 (file)
@@ -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,