follow client realm referals when referrals in on

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24336 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-01-17 21:53:25 +00:00
parent 4a73c067fa
commit dc0f6fef51

View File

@@ -1586,7 +1586,7 @@ krb5_init_creds_step(krb5_context context,
N_("Preauth required but no preauth "
"options send by KDC", ""));
}
} else if (ret == KRB5_KDC_ERR_WRONG_REALM) {
} else if (ret == KRB5_KDC_ERR_WRONG_REALM && ctx->flags.canonicalize) {
/* client referal to a new realm */
if (ctx->error.crealm) {
krb5_set_error_message(context, ret,