lib/krb5: Windows API:krb5cc ccache fallback
If there is no MSLSA: credential cache principal, then try to fallback to the MIT default MIT credential cache name, API:krb5cc. Change-Id: I8f981c5401b4f962cf808e7b0dc782e42bc03023
This commit is contained in:
@@ -574,6 +574,17 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
|
|||||||
krb5_cc_close(context, id);
|
krb5_cc_close(context, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (p == NULL) {
|
||||||
|
/*
|
||||||
|
* If the API:krb5cc ccache can be resolved,
|
||||||
|
* use it as the default.
|
||||||
|
*/
|
||||||
|
krb5_ccache api_id;
|
||||||
|
ret = krb5_cc_resolve(context, "API:krb5cc", &api_id);
|
||||||
|
if (ret == 0)
|
||||||
|
krb5_cc_close(context, api_id);
|
||||||
|
}
|
||||||
|
/* Otherwise, fallback to the FILE ccache */
|
||||||
#endif
|
#endif
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
ret = (*ops->get_default_name)(context, &p);
|
ret = (*ops->get_default_name)(context, &p);
|
||||||
|
Reference in New Issue
Block a user