summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-01 12:38:06 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-08 02:57:07 +0200
commitdd804dd8caf2744aba5968b86724a538159708eb (patch)
tree5c75de0b3e5cf795c519409b69c4158118c0097b /source4/torture/raw
parent7c0c1fabd08cac83f306240f00a98901543a367f (diff)
downloadsamba-dd804dd8caf2744aba5968b86724a538159708eb.tar.gz
samba-dd804dd8caf2744aba5968b86724a538159708eb.tar.bz2
samba-dd804dd8caf2744aba5968b86724a538159708eb.zip
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
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/context.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c
index 45300cf249..b0636d19ea 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);