diff options
author | Günther Deschner <gd@samba.org> | 2010-06-29 17:19:28 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-06-29 17:19:28 +0200 |
commit | 92f3e143b7b89ce25b996d6e68f130bbd7142af5 (patch) | |
tree | 40ee8b6e2dc209e441732c97b32606a8a8791ac0 /source4/torture/rpc | |
parent | 5bc77c8778dda8e688c1eff0167c67fa19b31d75 (diff) | |
download | samba-92f3e143b7b89ce25b996d6e68f130bbd7142af5.tar.gz samba-92f3e143b7b89ce25b996d6e68f130bbd7142af5.tar.bz2 samba-92f3e143b7b89ce25b996d6e68f130bbd7142af5.zip |
s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation test.
When skipping over it, we can at least verify the credential chain.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 8 |
1 files 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), |