[krb5-auth-dialog] Update possible value for bad passwords



commit a206f560c80b904d053b61d3f2173b637c254390
Author: Guido Günther <agx sigxcpu org>
Date:   Wed Jun 18 00:13:19 2014 +0200

    Update possible value for bad passwords
    
    At least heimdal also returns KRB5KRB_AP_ERR_MODIFIED and
    KRB5_GET_IN_TKT_LOOP as seen in kinit.
    
    This makes sure we properly reprompt for the password when seeing these
    values.

 src/ka-kerberos.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
index a6ec530..2b0106e 100644
--- a/src/ka-kerberos.c
+++ b/src/ka-kerberos.c
@@ -782,6 +782,8 @@ grab_credentials (KaApplet *applet)
         switch (retval) {
         case KRB5KDC_ERR_PREAUTH_FAILED:
         case KRB5KRB_AP_ERR_BAD_INTEGRITY:
+        case KRB5KRB_AP_ERR_MODIFIED:
+        case KRB5_GET_IN_TKT_LOOP:
 #ifdef HAVE_HX509_ERR_H
         case HX509_PKCS11_LOGIN:
 #endif /* Invalid password/pin, try again. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]