From 29635c93d7a3e7d6297c065b56ece9650f6e4ee8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 10 Dec 2011 15:02:52 +1100 Subject: s4-torture cope with servers earlier than Windows 2008 Only Win2008 started to support new encryption types. Andrew Bartlett --- source4/torture/rpc/forest_trust.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/forest_trust.c b/source4/torture/rpc/forest_trust.c index 397661ed8a..b7fdd2a4b8 100644 --- a/source4/torture/rpc/forest_trust.c +++ b/source4/torture/rpc/forest_trust.c @@ -309,6 +309,11 @@ static bool get_and_set_info(struct dcerpc_pipe *p, "%s but %s\n", nt_errstr(il[c].get_result), nt_errstr(qr.out.result)); + + /* We may be testing a server without support for this level */ + if (qr.in.level == LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES && NT_STATUS_EQUAL(qr.out.result, NT_STATUS_INVALID_PARAMETER)) { + return true; + } return false; } -- cgit