aboutsummaryrefslogtreecommitdiff
path: root/src/krb5-auth-dialog.c
diff options
context:
space:
mode:
authorcaillon <caillon@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2006-07-24 17:48:24 +0000
committercaillon <caillon@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2006-07-24 17:48:24 +0000
commit38c7caad918aa96e4dfa72dd45218e546605d56c (patch)
tree91cf8ffcfd8d746c9332cb2a1411d389f65e4d0f /src/krb5-auth-dialog.c
parent928dc98a844c0d5cf4816445ec91f7a70e82aae6 (diff)
2006-07-24 Christopher Aillon <caillon@redhat.com>
* src/krb5-auth-dialog.c: Don't immediately retry to reach the KDC if it is unavailable. That will just loop forever (until the KDC becomes available). Bail out; we'll check (once!) to see whether it's there the next time our g_timeout callback gets invoked. git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@64 517b70f8-ed25-0410-8bf6-f5db08f7b76e
Diffstat (limited to 'src/krb5-auth-dialog.c')
-rw-r--r--src/krb5-auth-dialog.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c
index 754f676..bb0e0b1 100644
--- a/src/krb5-auth-dialog.c
+++ b/src/krb5-auth-dialog.c
@@ -284,6 +284,7 @@ auth_dialog_prompter (krb5_context ctx,
case GTK_RESPONSE_DELETE_EVENT:
break;
default:
+ g_warning ("Unknown Response: %d", response);
g_assert_not_reached ();
}
@@ -375,7 +376,11 @@ credentials_expiring (gpointer *data)
retval = grab_credentials (renewable);
give_up = canceled &&
(creds_expiry == canceled_creds_expiry);
- } while ((retval != 0) && !give_up);
+ } while ((retval != 0) &&
+ (retval != KRB5_REALM_CANT_RESOLVE) &&
+ (retval != KRB5_KDC_UNREACH) &&
+ invalid_password &&
+ !give_up);
}
}