summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-12-20 10:54:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:38 -0500
commit2d349000887670c1127d354e9ce2b53284caf7f9 (patch)
tree59cb6ab2a7aa882861d5917770aaaef214128bea
parentd6d17ea88390d86118d621d2d77a5a57c0267cc9 (diff)
downloadsamba-2d349000887670c1127d354e9ce2b53284caf7f9.tar.gz
samba-2d349000887670c1127d354e9ce2b53284caf7f9.tar.bz2
samba-2d349000887670c1127d354e9ce2b53284caf7f9.zip
r20273: Map KRB5_KDCREP_SKEW to NT_STATUS_TIME_DIFFERENCE_AT_DC.
This gives much nicer error messages when failing to join due to clock skew. Guenther (This used to be commit 5c5a7611029ff1b630c53d4660578e188acf97f5)
-rw-r--r--source3/libads/krb5_errs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/krb5_errs.c b/source3/libads/krb5_errs.c
index 38d34f8676..a4a3bd3adb 100644
--- a/source3/libads/krb5_errs.c
+++ b/source3/libads/krb5_errs.c
@@ -50,6 +50,7 @@ static const struct {
{KRB5KRB_AP_ERR_BAD_INTEGRITY, NT_STATUS_LOGON_FAILURE},
{KRB5KRB_AP_ERR_MODIFIED, NT_STATUS_LOGON_FAILURE},
{KRB5KRB_AP_ERR_SKEW, NT_STATUS_TIME_DIFFERENCE_AT_DC},
+ {KRB5_KDCREP_SKEW, NT_STATUS_TIME_DIFFERENCE_AT_DC},
{KRB5KRB_AP_ERR_TKT_EXPIRED, NT_STATUS_LOGON_FAILURE},
{KRB5KRB_ERR_GENERIC, NT_STATUS_UNSUCCESSFUL},
#if defined(KRB5KRB_ERR_RESPONSE_TOO_BIG)