git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a46c7f
)
s4-torture: Don't consider NONE_MAPPED an error in LookupSids3.
author
Andreas Schneider
<asn@samba.org>
Thu, 5 Jul 2012 12:11:51 +0000
(14:11 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 6 Jul 2012 08:00:57 +0000
(10:00 +0200)
source4/torture/rpc/lsa.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/lsa.c
b/source4/torture/rpc/lsa.c
index ed9bab974a330f99883cca4dae4b8f408cde0d03..942dd5234b9db92e77a7c5d8e3b5960282fae947 100644
(file)
--- 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, 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");
torture_comment(tctx, "\n");
+ if (!test_LookupNames4(b, tctx, &names, true)) {
+ return false;
+ }
+
return true;
}
return true;
}