]> git.ipfire.org Git - thirdparty/krb5.git/commit
Only handle IAKERB errors in initiator step 1421/head
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 4 Apr 2025 10:04:00 +0000 (12:04 +0200)
committerGreg Hudson <ghudson@mit.edu>
Tue, 8 Apr 2025 20:41:31 +0000 (16:41 -0400)
commite2e5f386ccf2bea1fa55ce544f43098ae2b38f89
tree82871ac0f994f86a5f61620a534581b36e2d52ac
parent6f8292ca20bddf1de23b9f525e54a3a674c46b8b
Only handle IAKERB errors in initiator step

iakerb_initiator_step() must pass through most KRB-ERROR messages in
order to properly handle recoverable AS and TGS errors such as
KDC_ERR_PREAUTH_REQUIRED.  Only stop on IAKERB errors.

[ghudson@mit.edu: changed code to check for com_err codes instead of
protocol codes; changed iakerb_acceptor_realm() to respond with an
IAKERB error when realm determination fails and modified test case
accordingly; added a test case by requiring preauth on the user
principal when testing IAKERB; rewrote commit message]

ticket: 9169
src/lib/gssapi/krb5/iakerb.c
src/tests/gssapi/t_gssapi.py