kdc: Don't return PREAUTH_FAILED if encrypted challenge did not fail to decrypt
Instead we return ETYPE_NOSUPP. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Luke Howard

parent
842b856e4c
commit
49420aa3a1
@@ -753,10 +753,12 @@ pa_enc_chal_validate(astgs_request_t r,
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = KRB5KDC_ERR_PREAUTH_FAILED;
|
||||
|
||||
if (invalidPassword)
|
||||
if (invalidPassword) {
|
||||
auth_status->auth_status = HDB_AUTH_WRONG_PASSWORD;
|
||||
ret = KRB5KDC_ERR_PREAUTH_FAILED;
|
||||
} else {
|
||||
ret = KRB5KDC_ERR_ETYPE_NOSUPP;
|
||||
}
|
||||
out:
|
||||
free_EncryptedData(&enc_data);
|
||||
|
||||
|
Reference in New Issue
Block a user