Only check service key for cross realm PACs.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20265 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-02-18 08:34:36 +00:00
parent 325f6037d7
commit 45ebb9c7f2

View File

@@ -1708,19 +1708,23 @@ server_lookup:
}
/* check PAC if there is one */
if (!cross_realm) {
{
Key *tkey;
krb5_keyblock *tgtkey = NULL;
ret = hdb_enctype2key(context, &krbtgt->entry,
krbtgt_etype, &tkey);
if(ret) {
kdc_log(context, config, 0,
"Failed to find key for krbtgt PAC check");
goto out;
if (!cross_realm) {
ret = hdb_enctype2key(context, &krbtgt->entry,
krbtgt_etype, &tkey);
if(ret) {
kdc_log(context, config, 0,
"Failed to find key for krbtgt PAC check");
goto out;
}
tgtkey = &tkey->key;
}
ret = check_PAC(context, config, client_principal,
client, server, ekey, &tkey->key,
client, server, ekey, tgtkey,
tgt, &rspac, &require_signedpath);
if (ret) {
kdc_log(context, config, 0,