kdc: only set HDB_F_GET_KRBTGT when requesting TGS principal
commit58bc0a4b7f1ec70e1d9e7a80dac6e85042cf7bc2
authorLuke Howard <lukeh@padl.com>
Sun, 6 Jan 2019 06:54:58 +0000 (6 17:54 +1100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2021 22:37:10 +0000 (27 22:37 +0000)
treef8ba3a831c4ad9ecc0d7db57c9b1a33dc766126f
parent49bcbcbb4d6130440064db6d1a0bd888891f3a8f
kdc: only set HDB_F_GET_KRBTGT when requesting TGS principal

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

[jsutton@samba.org Backported from Heimdal commit
 f1dd2b818aa0866960945edea02a6bc782ed697c
 - Removed change to _kdc_find_etype() use_strongest_session_key
 parameter since Samba's Heimdal version uses different logic
]

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit db30b71f79864a20b38a1f812a5df833f3a92de8)
source4/heimdal/kdc/kerberos5.c