From 013fb45a7f14971413bb333dd9a167db73db1b85 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 4 Aug 2009 20:09:02 +0200 Subject: [PATCH] Make the send e_text on time skew error default to make it work with windows clients. --- kdc/kerberos5.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/kdc/kerberos5.c b/kdc/kerberos5.c index 933d0d17f..8edc07a49 100644 --- a/kdc/kerberos5.c +++ b/kdc/kerberos5.c @@ -1208,19 +1208,13 @@ _kdc_as_rep(krb5_context context, (unsigned)abs(kdc_time - p.patimestamp), context->max_skew, client_name); -#if 0 - /* This code is from samba, needs testing */ + /* - * the following is needed to make windows clients - * to retry using the timestamp in the error message - * - * this is maybe a bug in windows to not trying when e_text - * is present... + * The following is needed to make windows clients to + * retry using the timestamp in the error message, if + * there is a e_text, they become unhappy. */ e_text = NULL; -#else - e_text = "Too large time skew"; -#endif goto out; } et.flags.pre_authent = 1;