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)
committerVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 19:32:17 +0000 (20:32 +0100)
source3/include/client.h
source3/libsmb/cliconnect.c

index d5030c1cb2dedbd32ecde842e14c924041a64f3f..c74c74509aa77ba236a8401bfdef4012a2f7631f 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 fa79ebcea362606919f4dc409af0061758fdaa2d..2905a661a076bbd9cf6f09b78102460d849746cb 100644 (file)
@@ -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;