1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

s3: add libnetapi_set_use_ccache()

This commit is contained in:
Volker Lendecke
2010-01-24 18:50:31 +01:00
parent bff48738a8
commit aa837d4aee
3 changed files with 16 additions and 0 deletions

View File

@ -55,6 +55,10 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
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,

View File

@ -250,6 +250,12 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx)
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;
}
/****************************************************************
****************************************************************/

View File

@ -1318,6 +1318,7 @@ struct libnetapi_ctx {
char *password;
char *krb5_cc_env;
int use_kerberos;
int use_ccache;
int disable_policy_handle_cache;
void *private_data;
@ -1370,6 +1371,11 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx);
/****************************************************************
****************************************************************/
NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
/****************************************************************
****************************************************************/
const char *libnetapi_errstr(NET_API_STATUS status);
/****************************************************************