2006-03-07 Jeffrey Altman <jaltman@mit.edu>
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 7 Mar 2006 17:14:29 +0000 (17:14 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 7 Mar 2006 17:14:29 +0000 (17:14 +0000)
       * 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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/acquire_cred.c

index 0e6c3a4718b8b97ee522a9bbccc924ee4a3845c7..f1a7cc31af5ad126d891001dbb05738fcb39061a 100644 (file)
@@ -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
index c293b278398e4263a5066f441af28de876396906..a321505fd853317f3c17f2dadc75b6f95864d314 100644 (file)
@@ -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