[gnome-control-center/gnome-3-8] user-accounts: Handle "incorrect password" krb5 code



commit 5d66151a8698a93cc691b0c2e04d9f0fad03229a
Author: Stef Walter <stefw gnome org>
Date:   Fri Apr 19 20:13:16 2013 +0200

    user-accounts: Handle "incorrect password" krb5 code
    
    Oddly enough this is the standard krb5 error code for an
    incorrect password. Which error code is returned depends
    on how the protocol is being used. FreeIPA returns this one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698266

 panels/user-accounts/um-realm-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
index 2289c02..e20fba0 100644
--- a/panels/user-accounts/um-realm-manager.c
+++ b/panels/user-accounts/um-realm-manager.c
@@ -818,6 +818,7 @@ kinit_thread_func (GSimpleAsyncResult *async,
                                                  login->user, login->domain);
                 break;
         case KRB5KDC_ERR_PREAUTH_FAILED:
+        case KRB5KRB_AP_ERR_BAD_INTEGRITY:
                 g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_BAD_PASSWORD,
                                                  _("Invalid password, please try again"));
                 break;


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