From 5fb2eb45a52664450dbdb5e56a522cd51eddef02 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 8 Mar 2006 22:36:50 +0000 Subject: [PATCH] pull up r17704 from trunk ticket: 3495 version_fixed: 1.4.4 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17721 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 7 +++++++ src/lib/gssapi/krb5/acquire_cred.c | 7 +++++++ 2 files changed, 14 insertions(+) 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 -- 2.26.2