Sign and verify PAC with ticket principal instead of canon principal
authorIsaac Boukris <iboukris@gmail.com>
Thu, 16 Jan 2020 21:00:21 +0000 (22:00 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Apr 2020 11:56:08 +0000 (11:56 +0000)
commit958807109845313c35a0c6949b33ffbc09eeba59
treecc9675cee1e1c89c56c167119766d660752ee3a3
parent25fefdb75f50716e6ad812fd900092fb56a18647
Sign and verify PAC with ticket principal instead of canon principal

With MIT library 1.18 the KDC no longer set
KRB5_KDB_FLAG_CANONICALIZE for enterprise principals which allows
us to not canonicalize them (like in Windows / Heimdal).

However, it now breaks the PAC signature verification as it was
wrongly done using canonical client rather than ticket client name.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14342

Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/kdc/mit-kdb/kdb_samba_policies.c