From 92f3e143b7b89ce25b996d6e68f130bbd7142af5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 29 Jun 2010 17:19:28 +0200 Subject: s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation test. When skipping over it, we can at least verify the credential chain. Guenther --- source4/torture/rpc/netlogon.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index b3901bdb89..32c16f94e6 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -2085,8 +2085,12 @@ static bool test_netr_GetForestTrustInformation(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, dcerpc_netr_GetForestTrustInformation_r(b, tctx, &r), "netr_GetForestTrustInformation failed"); - torture_assert_ntstatus_ok(tctx, r.out.result, - "netr_GetForestTrustInformation failed"); + if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_NOT_IMPLEMENTED)) { + torture_comment(tctx, "not considering NT_STATUS_NOT_IMPLEMENTED as an error\n"); + } else { + torture_assert_ntstatus_ok(tctx, r.out.result, + "netr_GetForestTrustInformation failed"); + } torture_assert(tctx, netlogon_creds_client_check(creds, &return_authenticator.cred), -- cgit