kdc: Call _kdc_fast_check_armor_pac() prior to calling _kdc_check_pac()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 8 Mar 2023 02:37:30 +0000 (15:37 +1300)
committerJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 3 May 2023 04:13:17 +0000 (16:13 +1200)
commitcaf0bafcc55f64dc62dc0124053da31c82d45df6
treeeea03c6adc1eac4bee5d9974b1c0b8e894b4e7e8
parent146c3bc2ad03a8e3ae67fc5e450463592a481c6a
kdc: Call _kdc_fast_check_armor_pac() prior to calling _kdc_check_pac()

The plugin code invoked by _kdc_check_pac() may need to access
explicit_armor_client and explicit_armor_pac, but those fields are not
set until after calling _kdc_fast_check_armor_pac(). Hence we must do
that first.

We also now call _kdc_fast_check_armor_pac() regardless of whether the
ticket was issued by the KDC or whether the server principal is the
krbtgt.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
kdc/krb5tgs.c