summaryrefslogtreecommitdiff
path: root/source3/libsmb/cliconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/cliconnect.c')
-rw-r--r--source3/libsmb/cliconnect.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 893d194a87..cc9821dc29 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -634,10 +634,12 @@ BOOL cli_session_setup(struct cli_state *cli,
return cli_session_setup_plaintext(cli, user, pass, workgroup);
}
+#if 0 /* JRATEST for signing. */
/* if the server supports extended security then use SPNEGO */
if (cli->capabilities & CAP_EXTENDED_SECURITY) {
return cli_session_setup_spnego(cli, user, pass, workgroup);
}
+#endif
/* otherwise do a NT1 style session setup */
return cli_session_setup_nt1(cli, user,
@@ -822,6 +824,10 @@ BOOL cli_negprot(struct cli_state *cli)
cli->use_spnego = False;
}
+#if 1 /* JRA SIGN TEST */
+ cli->use_spnego = False;
+#endif
+
memset(cli->outbuf,'\0',smb_size);
/* setup the protocol strings */
@@ -886,8 +892,10 @@ BOOL cli_negprot(struct cli_state *cli)
if (getenv("CLI_FORCE_SMB_SIGNING"))
cli->sign_info.negotiated_smb_signing = True;
+#if 0
if (cli->sign_info.negotiated_smb_signing && !(cli->sec_mode & NEGOTIATE_SECURITY_SIGNATURES_ENABLED))
cli->sign_info.negotiated_smb_signing = False;
+#endif
} else if (cli->protocol >= PROTOCOL_LANMAN1) {
cli->use_spnego = False;