Skip to content

Commit

Permalink
Set fCachesTicket=TRUE when no credentials
Browse files Browse the repository at this point in the history
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 c654e9c)

ticket: 7255
status: resolved
  • Loading branch information
Kevin Wasserman authored and tlyu committed Aug 27, 2012
1 parent 4e52b28 commit c27a2ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/krb5/ccache/cc_mslsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit c27a2ea

Please sign in to comment.