From dd804dd8caf2744aba5968b86724a538159708eb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 1 May 2012 12:38:06 +0200 Subject: [PATCH] s4:torture/raw/context: INVALID_PARAMETER vs. LOGON_FAILURE... If the try a session setup without EXTENDED_SECURITY after one with EXTENDED_SECURITY Windows 2008 R2 returns INVALID_PARAMETER, while Windows 2000 sp4 returns LOGON_FAILURE... metze --- source4/torture/raw/context.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c index 45300cf249b..b0636d19ea9 100644 --- a/source4/torture/raw/context.c +++ b/source4/torture/raw/context.c @@ -132,7 +132,13 @@ static bool test_session(struct smbcli_state *cli, struct torture_context *tctx) setup.in.credentials = cmdline_credentials; status = smb_composite_sesssetup(session3, &setup); - CHECK_STATUS(status, NT_STATUS_LOGON_FAILURE); + if (!NT_STATUS_EQUAL(status, NT_STATUS_LOGON_FAILURE)) { + /* + * Windows 2008 R2 returns INVALID_PARAMETER + * while Windows 2000 sp4 returns LOGON_FAILURE... + */ + CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); + } torture_comment(tctx, "create a fouth anonymous security context on the same transport, without extended security\n"); session4 = smbcli_session_init(cli->transport, tctx, false, options); -- 2.11.4.GIT