From 4eb1523d87e4ed1bcc5b1ec64da0b53ce2264000 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Jan 2010 19:24:10 +0100 Subject: s3-libsmbclient: Add smbc_setOptionUseCCache() Can we enable this by default? This would be a change in behaviour, but this feature is just too cool for everyone to catch up in the apps. The patch would be --- source3/libsmb/libsmb_server.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/libsmb/libsmb_server.c') diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index 71cb67c61b..eb292da2ce 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -413,6 +413,10 @@ again: c->fallback_after_kerberos = True; } + if (smbc_getOptionUseCCache(context)) { + c->use_ccache = True; + } + c->timeout = smbc_getTimeout(context); /* @@ -759,6 +763,9 @@ SMBC_attr_server(TALLOC_CTX *ctx, if (smbc_getOptionUseKerberos(context)) { flags |= CLI_FULL_CONNECTION_USE_KERBEROS; } + if (smbc_getOptionUseCCache(context)) { + flags |= CLI_FULL_CONNECTION_USE_CCACHE; + } zero_sockaddr(&ss); nt_status = cli_full_connection(&ipc_cli, -- cgit