s3: Add CLI_FULL_CONNECTION_USE_CCACHE
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 16:34:13 +0000 (17:34 +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 c74c74509aa77ba236a8401bfdef4012a2f7631f..72cea4a82ca823571390b6b399a0e99fbc335675 100644 (file)
@@ -305,5 +305,6 @@ typedef struct file_info {
 #define CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS 0x0008
 #define CLI_FULL_CONNECTION_OPLOCKS 0x0010
 #define CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS 0x0020
+#define CLI_FULL_CONNECTION_USE_CCACHE 0x0040
 
 #endif /* _CLIENT_H */
index 2905a661a076bbd9cf6f09b78102460d849746cb..31f848cb00b2210a607795ccbb9e2cf9ee39377d 100644 (file)
@@ -2553,6 +2553,9 @@ again:
             cli->use_kerberos) {
                cli->fallback_after_kerberos = true;
        }
+       if (flags & CLI_FULL_CONNECTION_USE_CCACHE) {
+               cli->use_ccache = true;
+       }
 
        nt_status = cli_negprot(cli);
        if (!NT_STATUS_IS_OK(nt_status)) {