diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-06-07 19:38:26 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-06-12 12:42:26 +0000 |
commit | 4d81e48a17138485b71b1e108600f168a0110b96 (patch) | |
tree | c2d40782b500578a2cfcb3ac924dad2e71f76732 | |
parent | 1b46a10c1636c293c4f934b65131b1c513d41fc0 (diff) | |
download | samba-4d81e48a17138485b71b1e108600f168a0110b96.tar.gz |
s4:torture: force signing in the smb2.session.bind1 test
This test is supposed to test which signing keys are used on
each of the channels, so it's important to require signing.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source4/torture/smb2/session.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/torture/smb2/session.c b/source4/torture/smb2/session.c index d3044e79fb8..07c6faebb15 100644 --- a/source4/torture/smb2/session.c +++ b/source4/torture/smb2/session.c @@ -1717,6 +1717,7 @@ bool test_session_bind1(struct torture_context *tctx, struct smb2_tree *tree1) bool ret = false; struct smb2_tree *tree2 = NULL; struct smb2_transport *transport1 = tree1->session->transport; + struct smbcli_options options2; struct smb2_transport *transport2 = NULL; struct smb2_session *session1_1 = tree1->session; struct smb2_session *session1_2 = NULL; @@ -1729,6 +1730,13 @@ bool test_session_bind1(struct torture_context *tctx, struct smb2_tree *tree1) torture_skip(tctx, "server doesn't support SMB2_CAP_MULTI_CHANNEL\n"); } + /* + * We always want signing for this test! + */ + smb2cli_tcon_should_sign(tree1->smbXcli, true); + options2 = transport1->options; + options2.signing = SMB_SIGNING_REQUIRED; + /* Add some random component to the file name. */ snprintf(fname, sizeof(fname), "session_bind1_%s.dat", generate_random_str(tctx, 8)); @@ -1757,7 +1765,7 @@ bool test_session_bind1(struct torture_context *tctx, struct smb2_tree *tree1) credentials, &tree2, tctx->ev, - &transport1->options, + &options2, lpcfg_socket_options(tctx->lp_ctx), lpcfg_gensec_settings(tctx, tctx->lp_ctx) ); |