When getting initial credentials with a password, try the master if
authorGreg Hudson <ghudson@mit.edu>
Wed, 8 Apr 2009 15:22:17 +0000 (15:22 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 8 Apr 2009 15:22:17 +0000 (15:22 +0000)
preauth fails on a slave, since preauth can fail due to an out-of-date
key.  This removes a snippet added in r14939 which was considering
only hardware preauth.

ticket: 6108
tags: pullup
target_version: 1.7

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22182 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/gic_pwd.c

index ef2b7f0964f4b4d9bd01ed14367b4cd24a74eb4f..f319c3540c3bf55f8810033d2e1496a77a45e690 100644 (file)
@@ -144,10 +144,9 @@ krb5_get_init_creds_password(krb5_context context,
       goto cleanup;
 
    /* If all the kdc's are unavailable, or if the error was due to a
-      user interrupt, or preauth errored out, fail */
+      user interrupt, fail */
 
    if ((ret == KRB5_KDC_UNREACH) ||
-       (ret == KRB5_PREAUTH_FAILED) ||
        (ret == KRB5_LIBOS_PWDINTR) ||
           (ret == KRB5_REALM_CANT_RESOLVE))
       goto cleanup;