]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Set fCachesTicket=TRUE when no credentials
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Mon, 16 Jul 2012 15:48:55 +0000 (11:48 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 27 Aug 2012 23:27:32 +0000 (19:27 -0400)
It is not really clear this is correct, but neither was the
previous behavior.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit c654e9c7436cdd57cb61c0bd29b26c79e3675a01)

ticket: 7255
status: resolved

src/lib/krb5/ccache/cc_mslsa.c

index f25658ebf1cf6b0fc07b35a447a9306d02f05297..39d78e78ea2858a10268ac0aa0cd7a6058d9da72 100644 (file)
@@ -655,7 +655,8 @@ does_retrieve_ticket_cache_ticket (void)
         LsaDeregisterLogonProcess(LogonHandle);
 
         if (FAILED(Status) || FAILED(SubStatus)) {
-            if ( SubStatus == STATUS_NOT_SUPPORTED )
+            if (SubStatus == STATUS_NOT_SUPPORTED ||
+                SubStatus == SEC_E_NO_CREDENTIALS)
                 /* The combination of the two CacheOption flags
                  * is not supported; therefore, the new flag is supported
                  */