summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/session.c')
-rw-r--r--source4/torture/smb2/session.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/smb2/session.c b/source4/torture/smb2/session.c
index 7dc9ba19ee6..65cc53ba337 100644
--- a/source4/torture/smb2/session.c
+++ b/source4/torture/smb2/session.c
@@ -1073,6 +1073,8 @@ static bool test_session_expire1i(struct torture_context *tctx,
torture_assert_int_equal(tctx, use_kerberos, CRED_MUST_USE_KERBEROS,
"please use -k yes");
+ cli_credentials_invalidate_ccache(credentials, CRED_SPECIFIED);
+
lpcfg_set_option(tctx->lp_ctx, "gensec_gssapi:requested_life_time=4");
lpcfg_smbcli_options(tctx->lp_ctx, &options);
@@ -1167,6 +1169,8 @@ static bool test_session_expire1i(struct torture_context *tctx,
ret = true;
done:
+ cli_credentials_invalidate_ccache(credentials, CRED_SPECIFIED);
+
if (h1 != NULL) {
smb2_util_close(tree, *h1);
}
@@ -1236,6 +1240,8 @@ static bool test_session_expire2i(struct torture_context *tctx,
torture_assert_int_equal(tctx, use_kerberos, CRED_MUST_USE_KERBEROS,
"please use -k yes");
+ cli_credentials_invalidate_ccache(credentials, CRED_SPECIFIED);
+
lpcfg_set_option(tctx->lp_ctx, "gensec_gssapi:requested_life_time=4");
lpcfg_smbcli_options(tctx->lp_ctx, &options);
@@ -1547,6 +1553,8 @@ static bool test_session_expire2i(struct torture_context *tctx,
ret = true;
done:
+ cli_credentials_invalidate_ccache(credentials, CRED_SPECIFIED);
+
if (h1 != NULL) {
smb2_util_close(tree, *h1);
}