s4:torture/raw/context: INVALID_PARAMETER vs. LOGON_FAILURE...
authorStefan Metzmacher <metze@samba.org>
Tue, 1 May 2012 10:38:06 +0000 (12:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 8 May 2012 00:57:07 +0000 (02:57 +0200)
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

index 45300cf249bc0ecdd36066d289ff09db3ba22a41..b0636d19ea9bf43ef8b2594df247df1ca8832ab9 100644 (file)
@@ -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);