Files
heimdal/lib/hdb
Luke Howard 6bb8eaca20 hdb: dereference principal aliases in all KDC lookups (#452)
e11abf41 added support in libhdb for always dereferencing principal aliases
during an AS-REQ (where dereferencing refers to enabling alias lookups, and
rewriting the returned entry with the alias name unless canonicalization was
enabled).

Due to the KDC setting HDB_F_FOR_AS_REQ for all lookups from the AS, this
allowed aliases on the TGS itself to be dereferenced during an AS-REQ; however,
on presenting the TGT, the TGS would fail to resolve. Creating an explicit TGS
principal for the aliased realm would work (at least prior to c555ed6a), but
this could be confusing to deploy.

This commit changes enables alias dereferencing when HDB_F_GET_ANY is set,
which essentially means dereference whenever the request is coming from the KDC
(as opposed to, say, kadmin).

We also backout c555ed6a, which changed the TGS to always canonicalize the
server realm, as this breaks serving multiple realms from a single KDC, where
server principals in different realms share a single canonical entry.
HDB_F_CANON is now passed to the backend as a hint only, and per RFC 6806 the
principal name is never changed in TGS replies. (However, for Samba interop,
backends can override this by setting the force-canonicalize HDB flag.)
2019-01-05 14:01:26 +11:00
..
2017-10-10 13:07:18 -05:00
2017-10-10 13:07:18 -05:00
2016-11-20 17:43:51 -06:00
2016-02-16 20:49:32 -06:00
2011-05-21 11:57:31 -07:00
2017-10-10 13:07:18 -05:00
2017-10-10 13:07:18 -05:00
2017-10-10 13:07:18 -05:00
2019-01-03 20:06:27 -06:00
2017-10-10 13:07:18 -05:00
2019-01-03 20:06:27 -06:00
2017-03-17 13:20:06 -05:00
2017-04-29 01:05:59 -04:00
2010-11-28 11:46:46 -08:00
2016-11-15 13:54:45 -06:00