From: Jeffrey Altman Date: Tue, 7 Mar 2006 17:14:29 +0000 (+0000) Subject: 2006-03-07 Jeffrey Altman X-Git-Tag: krb5-1.5-alpha1~190 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca39d95f3cb9681664d3761f4c0c2ec23d36dfd3;p=krb5.git 2006-03-07 Jeffrey Altman * acquire_cred.c: (acquire_init_cred) If the leash32.dll is not available, fallback to opening the default credential cache even when the desired_name is provided. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17704 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 0e6c3a471..f1a7cc31a 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,10 @@ +2006-03-07 Jeffrey Altman + + * acquire_cred.c: (acquire_init_cred) + If the leash32.dll is not available, fallback to opening the + default credential cache even when the desired_name is + provided. + 2005-11-14 Jeffrey Altman * gssapi_krb5.hin: include k5-int.h instead of krb5.h diff --git a/src/lib/gssapi/krb5/acquire_cred.c b/src/lib/gssapi/krb5/acquire_cred.c index c293b2783..a321505fd 100644 --- a/src/lib/gssapi/krb5/acquire_cred.c +++ b/src/lib/gssapi/krb5/acquire_cred.c @@ -278,6 +278,13 @@ acquire_init_cred(context, minor_status, desired_name, output_princ, cred) *minor_status = code; return(GSS_S_CRED_UNAVAIL); } + } else { + /* leash dll not available, open the default credential cache */ + + if ((code = krb5int_cc_default(context, &ccache))) { + *minor_status = code; + return(GSS_S_CRED_UNAVAIL); + } } #endif /* USE_LEASH */ } else