try also to fallback to v4 when no KDC is found

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8307 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-06-02 19:53:10 +00:00
parent a0f08c19b2
commit 387a840eb1

View File

@@ -511,15 +511,17 @@ main (int argc, char **argv)
&opt);
}
#ifdef KRB4
if (ret == KRB5KRB_AP_ERR_V4_REPLY) {
if (ret == KRB5KRB_AP_ERR_V4_REPLY || ret == KRB5_KDC_UNREACH) {
int exit_val;
exit_val = do_v4_fallback (context, principal, ticket_life,
use_keytab, keytab_str,
passwd, sizeof(passwd));
memset(passwd, 0, sizeof(passwd));
krb5_free_context (context);
return exit_val;
if (exit_val = 0 || ret == KRB5KRB_AP_ERR_V4_REPLY) {
krb5_free_context (context);
return exit_val;
}
}
#endif
memset(passwd, 0, sizeof(passwd));