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:
@ -55,6 +55,10 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
|
|||||||
set_cmdline_auth_info_fallback_after_kerberos(auth_info, true);
|
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,
|
cli_ipc = cli_cm_open(ctx, NULL,
|
||||||
server_name, "IPC$",
|
server_name, "IPC$",
|
||||||
auth_info,
|
auth_info,
|
||||||
|
@ -250,6 +250,12 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx)
|
|||||||
return NET_API_STATUS_SUCCESS;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
|
|
||||||
|
@ -1318,6 +1318,7 @@ struct libnetapi_ctx {
|
|||||||
char *password;
|
char *password;
|
||||||
char *krb5_cc_env;
|
char *krb5_cc_env;
|
||||||
int use_kerberos;
|
int use_kerberos;
|
||||||
|
int use_ccache;
|
||||||
int disable_policy_handle_cache;
|
int disable_policy_handle_cache;
|
||||||
|
|
||||||
void *private_data;
|
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);
|
const char *libnetapi_errstr(NET_API_STATUS status);
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
|
Reference in New Issue
Block a user