diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-03-07 17:14:29 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-03-07 17:14:29 +0000 |
commit | ca39d95f3cb9681664d3761f4c0c2ec23d36dfd3 (patch) | |
tree | b1eba3474eb938787526b01ae823d8a71a92b3e5 /src | |
parent | 2a8ef273d10b778fa1bbdae3f98d8f5890ab8aff (diff) | |
download | krb5-ca39d95f3cb9681664d3761f4c0c2ec23d36dfd3.tar.gz krb5-ca39d95f3cb9681664d3761f4c0c2ec23d36dfd3.tar.xz krb5-ca39d95f3cb9681664d3761f4c0c2ec23d36dfd3.zip |
2006-03-07 Jeffrey Altman <jaltman@mit.edu>
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/gssapi/krb5/ChangeLog | 7 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/acquire_cred.c | 7 |
2 files changed, 14 insertions, 0 deletions
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 <jaltman@mit.edu> + + * 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 <jaltman@mit.edu> * 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 |