diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2000-04-07 19:14:20 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2000-04-07 19:14:20 +0000 |
commit | 7e5fa8ca9887946bdb2993ceef9fee4e7da69f13 (patch) | |
tree | 3a8dd0623c41554739f5790bd1d004f93ea2b693 /src/lib/krb5/krb/gic_pwd.c | |
parent | 5ede3aa75e0bffe8d117b7482035998a1986b7f1 (diff) | |
download | krb5-7e5fa8ca9887946bdb2993ceef9fee4e7da69f13.zip krb5-7e5fa8ca9887946bdb2993ceef9fee4e7da69f13.tar.gz krb5-7e5fa8ca9887946bdb2993ceef9fee4e7da69f13.tar.bz2 |
2000-04-07 Jeffrey Altman <jaltman@columbia.edu>
* gic_pwd.c (krb5_get_init_creds_keytab), gic_pwd.c (krb5_get_init_creds_password)
when determining whether or not to retry with a "master kdc" do not retry if
the return value from the first attempt was KRB5_REALM_CANT_RESOLV. Also, do
not overwrite the return code if the return value from the access to the "master
kdc" was KRB5_REALM_CANT_RESOLV.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12154 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/gic_pwd.c')
-rw-r--r-- | src/lib/krb5/krb/gic_pwd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/gic_pwd.c b/src/lib/krb5/krb/gic_pwd.c index 8debaee..86a1480 100644 --- a/src/lib/krb5/krb/gic_pwd.c +++ b/src/lib/krb5/krb/gic_pwd.c @@ -144,7 +144,8 @@ krb5_get_init_creds_password(context, creds, client, password, prompter, data, user interrupt, fail */ if ((ret == KRB5_KDC_UNREACH) || - (ret == KRB5_LIBOS_PWDINTR)) + (ret == KRB5_LIBOS_PWDINTR) || + (ret == KRB5_REALM_CANT_RESOLVE)) goto cleanup; /* if the reply did not come from the master kdc, try again with @@ -166,7 +167,8 @@ krb5_get_init_creds_password(context, creds, client, password, prompter, data, /* if the master is unreachable, return the error from the slave we were able to contact */ - if (ret2 == KRB5_KDC_UNREACH) + if ((ret2 == KRB5_KDC_UNREACH) || + (ret2 == KRB5_REALM_CANT_RESOLVE)) goto cleanup; ret = ret2; |