diff options
-rw-r--r-- | source3/include/client.h | 1 | ||||
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index d5030c1cb2..c74c74509a 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -266,6 +266,7 @@ struct cli_state { bool use_kerberos; bool fallback_after_kerberos; bool use_spnego; + bool use_ccache; bool got_kerberos_mechanism; /* Server supports krb5 in SPNEGO. */ bool use_oplocks; /* should we use oplocks? */ diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index fa79ebcea3..2905a661a0 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1006,6 +1006,10 @@ static struct tevent_req *cli_session_setup_ntlmssp_send( } ntlmssp_want_feature(state->ntlmssp_state, NTLMSSP_FEATURE_SESSION_KEY); + if (cli->use_ccache) { + ntlmssp_want_feature(state->ntlmssp_state, + NTLMSSP_FEATURE_CCACHE); + } status = ntlmssp_set_username(state->ntlmssp_state, user); if (!NT_STATUS_IS_OK(status)) { goto fail; |