set_cmdline_auth_info_fallback_after_kerberos(auth_info, true);
}
+ if (ctx->use_ccache) {
+ set_cmdline_auth_info_use_ccache(auth_info, true);
+ }
+
cli_ipc = cli_cm_open(ctx, NULL,
server_name, "IPC$",
auth_info,
return NET_API_STATUS_SUCCESS;
}
+NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx)
+{
+ ctx->use_ccache = true;
+ return NET_API_STATUS_SUCCESS;
+}
+
/****************************************************************
****************************************************************/
char *password;
char *krb5_cc_env;
int use_kerberos;
+ int use_ccache;
int disable_policy_handle_cache;
void *private_data;
/****************************************************************
****************************************************************/
+NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
+
+/****************************************************************
+****************************************************************/
+
const char *libnetapi_errstr(NET_API_STATUS status);
/****************************************************************