summaryrefslogtreecommitdiff
path: root/source3/lib/popt_common.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-24 17:07:24 +0100
committerVolker Lendecke <vl@samba.org>2010-01-24 20:32:17 +0100
commit21ec6a6cbd358f36aa9bf5974c5c53b8732cdceb (patch)
treecd5ea964d1f0ded20e8e7775003e8266602f1828 /source3/lib/popt_common.c
parenta03a83ad26b2cfa571b18f423915312c29fd33c7 (diff)
downloadsamba-21ec6a6cbd358f36aa9bf5974c5c53b8732cdceb.tar.gz
samba-21ec6a6cbd358f36aa9bf5974c5c53b8732cdceb.tar.bz2
samba-21ec6a6cbd358f36aa9bf5974c5c53b8732cdceb.zip
s3: Add -C (--use-ccache) to popt_common_credentials
Diffstat (limited to 'source3/lib/popt_common.c')
-rw-r--r--source3/lib/popt_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c
index 342309d1a7..060382b930 100644
--- a/source3/lib/popt_common.c
+++ b/source3/lib/popt_common.c
@@ -473,6 +473,7 @@ static void get_credentials_file(struct user_auth_info *auth_info,
* -S,--signing
* -P --machine-pass
* -e --encrypt
+ * -C --use-ccache
*/
@@ -573,7 +574,9 @@ static void popt_common_credentials_callback(poptContext con,
case 'e':
set_cmdline_auth_info_smb_encrypt(auth_info);
break;
-
+ case 'C':
+ set_cmdline_auth_info_use_ccache(auth_info, true);
+ break;
}
}
@@ -595,5 +598,7 @@ struct poptOption popt_common_credentials[] = {
{ "signing", 'S', POPT_ARG_STRING, NULL, 'S', "Set the client signing state", "on|off|required" },
{"machine-pass", 'P', POPT_ARG_NONE, NULL, 'P', "Use stored machine account password" },
{"encrypt", 'e', POPT_ARG_NONE, NULL, 'e', "Encrypt SMB transport (UNIX extended servers only)" },
+ {"use-ccache", 'C', POPT_ARG_NONE, NULL, 'C',
+ "Use the winbind ccache for authentication" },
POPT_TABLEEND
};