summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2013-04-25 13:28:23 +0200
committerStef Walter <stefw@redhat.com>2013-04-29 08:47:20 +0200
commit79a1c90c6a71de5290a2f3b052bf8b3548220a23 (patch)
tree88d4dfaef7f1a259458ac9cc8302ee2077879c36 /tools
parente7d079e48409bb99d8242ba81552d006c797c698 (diff)
Treat KRB5KRB_AP_ERR_BAD_INTEGRITY as bad password
This is what the kinit and other tools do. http://bugs.freedesktop.org/show_bug.cgi?id=63738
Diffstat (limited to 'tools')
-rw-r--r--tools/realm-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/realm-client.c b/tools/realm-client.c
index 6c58d63..960b072 100644
--- a/tools/realm-client.c
+++ b/tools/realm-client.c
@@ -653,7 +653,8 @@ kinit_to_ccache (krb5_context krb5,
krb5_get_init_creds_opt_free (krb5, options);
- if (code == KRB5KDC_ERR_PREAUTH_FAILED) {
+ if (code == KRB5KDC_ERR_PREAUTH_FAILED ||
+ code == KRB5KRB_AP_ERR_BAD_INTEGRITY) {
propagate_krb5_error (error, krb5, code, _("Invalid password for %s"), name);
return FALSE;