r10191: Return the right error code in the case of a time skew. Windows will now
authorJelmer Vernooij <jelmer@samba.org>
Tue, 13 Sep 2005 00:01:24 +0000 (00:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:07 +0000 (13:38 -0500)
ignore Kerberos and fallback to NTLMSSP when joining. Thanks to Andrew Bartlett
for the assistence.

source/heimdal/kdc/kerberos5.c

index 38444f4a13f89be647275212c00d0aa67097047d..2cbb5831d4960c73e839c425326bb826bc81d5f9 100644 (file)
@@ -982,7 +982,7 @@ _kdc_as_rep(krb5_context context,
            }
            free_PA_ENC_TS_ENC(&p);
            if (abs(kdc_time - p.patimestamp) > context->max_skew) {
-               ret = KRB5KDC_ERR_PREAUTH_FAILED;
+               ret = KRB5KRB_AP_ERR_SKEW;
                e_text = "Too large time skew";
                kdc_log(context, config, 0,
                        "Too large time skew -- %s", client_name);