{"machine-pass",'P', POPT_ARG_NONE, &c->opt_machine_pass},
{"kerberos", 'k', POPT_ARG_NONE, &c->opt_kerberos},
{"myworkgroup", 'W', POPT_ARG_STRING, &c->opt_workgroup},
+ {"use-ccache", 0, POPT_ARG_NONE, &c->opt_ccache},
{"verbose", 'v', POPT_ARG_NONE, &c->opt_verbose},
{"test", 'T', POPT_ARG_NONE, &c->opt_testmode},
/* Options for 'net groupmap set' */
if (c->opt_kerberos) {
libnetapi_set_use_kerberos(c->netapi_ctx);
}
+ if (c->opt_ccache) {
+ libnetapi_set_use_ccache(c->netapi_ctx);
+ }
return net_run_function(c, argc, argv, "net rpc", func);
}
flags |= CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS;
}
+ if (c->opt_ccache) {
+ flags |= CLI_FULL_CONNECTION_USE_CCACHE;
+ }
+
nt_status = cli_full_connection(cli_ctx, NULL, server_name,
server_ss, c->opt_port,
service_name, service_type,