s3: Add ccache use to cli_session_setup_ntlmssp
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 15:50:46 +0000 (16:50 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jan 2010 13:55:35 +0000 (14:55 +0100)
(cherry picked from commit e06abe412f78b58f36998037637d1b3478fdc477)

source3/include/client.h
source3/libsmb/cliconnect.c

index 82d94b055f6c36c2b5352a56a9e258ea713ad868..aedb60a528c8c3593d94b08e003ee112331c14be 100644 (file)
@@ -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? */
index 715ea913822ed50382acee7a7325f4731baa76c4..7f84fa4e59edb67730c39b36dab5d021a7748b48 100644 (file)
@@ -866,6 +866,9 @@ static NTSTATUS cli_session_setup_ntlmssp(struct cli_state *cli, const char *use
                return nt_status;
        }
        ntlmssp_want_feature(ntlmssp_state, NTLMSSP_FEATURE_SESSION_KEY);
+       if (cli->use_ccache) {
+               ntlmssp_want_feature(ntlmssp_state, NTLMSSP_FEATURE_CCACHE);
+       }
 
        if (!NT_STATUS_IS_OK(nt_status = ntlmssp_set_username(ntlmssp_state, user))) {
                return nt_status;