diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-19 13:45:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:37 -0500 |
commit | 3db368ad768857ec0a2e1b322ee9a9c59ad9a297 (patch) | |
tree | 8da8c1dcc1f7e5cebf4c07b54ef4bfdac3c1785d | |
parent | 544e17896eb52efea904be2bcd821185c6d1b4c9 (diff) | |
download | samba-3db368ad768857ec0a2e1b322ee9a9c59ad9a297.tar.gz samba-3db368ad768857ec0a2e1b322ee9a9c59ad9a297.tar.bz2 samba-3db368ad768857ec0a2e1b322ee9a9c59ad9a297.zip |
r21448: return the same error codes as a windows KDC
metze
(This used to be commit e4d69b83dcee2f50e95690d84f95d9e69acf858e)
-rw-r--r-- | source4/heimdal/kdc/kerberos5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/heimdal/kdc/kerberos5.c b/source4/heimdal/kdc/kerberos5.c index 3d45c1099c..bb0fda89e7 100644 --- a/source4/heimdal/kdc/kerberos5.c +++ b/source4/heimdal/kdc/kerberos5.c @@ -1085,7 +1085,7 @@ _kdc_as_rep(krb5_context context, if(ret){ char *estr; e_text = "No key matches pa-data"; - ret = KRB5KDC_ERR_PREAUTH_FAILED; + ret = KRB5KDC_ERR_ETYPE_NOSUPP; if(krb5_enctype_to_string(context, enc_data.etype, &estr)) estr = NULL; if(estr == NULL) @@ -1137,7 +1137,7 @@ _kdc_as_rep(krb5_context context, e_text = "Failed to decrypt PA-DATA"; free_EncryptedData(&enc_data); - ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; + ret = KRB5KDC_ERR_PREAUTH_FAILED; continue; } free_EncryptedData(&enc_data); @@ -1148,7 +1148,7 @@ _kdc_as_rep(krb5_context context, krb5_data_free(&ts_data); if(ret){ e_text = "Failed to decode PA-ENC-TS-ENC"; - ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; + ret = KRB5KDC_ERR_PREAUTH_FAILED; kdc_log(context, config, 5, "Failed to decode PA-ENC-TS_ENC -- %s", client_name); |