[30462] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Suppress krb5_cc_start_seq_get() popups in Leash

daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Mar 29 14:07:11 2019

Date: Fri, 29 Mar 2019 14:06:56 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <201903291806.x2TI6ucr030366@drugstore.mit.edu>
To: <cvs-krb5@mit.edu>
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/3208e88cae1c5b3c3f0477e64565764118df6316
commit 3208e88cae1c5b3c3f0477e64565764118df6316
Author: Greg Hudson <ghudson@mit.edu>
Date:   Tue Mar 19 11:15:26 2019 -0400

    Suppress krb5_cc_start_seq_get() popups in Leash
    
    Under some circumstances (perhaps related to a February Windows 10
    update), Leash can get past the krb5_cc_get_principal() step when
    processing an empty MSLSA ccache, and get a KRB5_CC_NOMATCH error from
    krb5_cc_start_seq_get().  Do not display a modal error dialog if this
    happens.
    
    ticket: 8790
    tags: pullup
    target_version: 1.17-next

 src/windows/leash/KrbListTickets.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/windows/leash/KrbListTickets.cpp b/src/windows/leash/KrbListTickets.cpp
index 5dd37b0..62bc55a 100644
--- a/src/windows/leash/KrbListTickets.cpp
+++ b/src/windows/leash/KrbListTickets.cpp
@@ -222,7 +222,8 @@ do_ccache(krb5_context ctx,
     }
     code = pkrb5_cc_start_seq_get(ctx, cache, &cur);
     if (code) {
-        functionName = "krb5_cc_start_seq_get";
+        // MSLSA errors here if no TGT is found; suppress error message box
+        code = 0;
         goto cleanup;
     }
     if (*ticketInfoTail)
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post