mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
auth/credentials_krb5: let cli_credentials_set_ccache() use smb_force_krb5_cc_default()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
a5d46f69d1
commit
afcd53b8d0
@ -323,7 +323,11 @@ _PUBLIC_ int cli_credentials_set_ccache(struct cli_credentials *cred,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ret = krb5_cc_default(ccc->smb_krb5_context->krb5_context, &ccc->ccache);
|
/*
|
||||||
|
* This is where the caller really wants to use
|
||||||
|
* the default krb5 ccache.
|
||||||
|
*/
|
||||||
|
ret = smb_force_krb5_cc_default(ccc->smb_krb5_context->krb5_context, &ccc->ccache);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
(*error_string) = talloc_asprintf(cred, "failed to read default krb5 ccache: %s\n",
|
(*error_string) = talloc_asprintf(cred, "failed to read default krb5 ccache: %s\n",
|
||||||
smb_get_krb5_error_message(ccc->smb_krb5_context->krb5_context,
|
smb_get_krb5_error_message(ccc->smb_krb5_context->krb5_context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user