kdc: move more name canonicalization logic to KDC
Enterprise principal client names in AS-REQs should always be canonicalized irrespective of the setting the canonicalize KDC option. Perform this check in the KDC rather than HDB. Do not set the HDB_F_GET_KRBTGT flag unless the client actually requested a TGS principal.
This commit is contained in:
@@ -119,7 +119,6 @@ _hdb_fetch_kvno(krb5_context context, HDB *db, krb5_const_principal principal,
|
||||
if (ret)
|
||||
return ret;
|
||||
principal = enterprise_principal;
|
||||
flags |= HDB_F_CANON; /* enterprise implies canonicalization */
|
||||
}
|
||||
|
||||
hdb_principal2key(context, principal, &key);
|
||||
|
Reference in New Issue
Block a user