1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:torture/smb2/session: session reauth response must be signed

This test checks that a session setup reauth is signed even when neither
client nor server require signing.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13661

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Ralph Boehme 2018-11-09 12:39:41 +01:00
parent 5fdea4095a
commit 181f18c4bf
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba3.smb2.session krb5.expire1n\(ad_member\)

View File

@ -1191,6 +1191,13 @@ done:
return ret;
}
static bool test_session_expire1n(struct torture_context *tctx)
{
return test_session_expire1i(tctx,
false, /* force_signing */
false); /* force_encryption */
}
static bool test_session_expire1s(struct torture_context *tctx)
{
return test_session_expire1i(tctx,
@ -1742,6 +1749,7 @@ struct torture_suite *torture_smb2_session_init(TALLOC_CTX *ctx)
torture_suite_add_1smb2_test(suite, "reauth4", test_session_reauth4);
torture_suite_add_1smb2_test(suite, "reauth5", test_session_reauth5);
torture_suite_add_1smb2_test(suite, "reauth6", test_session_reauth6);
torture_suite_add_simple_test(suite, "expire1n", test_session_expire1n);
torture_suite_add_simple_test(suite, "expire1s", test_session_expire1s);
torture_suite_add_simple_test(suite, "expire1e", test_session_expire1e);
torture_suite_add_simple_test(suite, "expire2s", test_session_expire2s);