Skip Menu |
 

Subject: Key rollover for MIT/AD cross TGT principals fails due to kvno 0
Download (untitled) / with headers
text/plain 1.1KiB
Normally, in a cross-realm relationship from realm A to realm B, the KDC
DB entries for krbtgt/B@A are expected to have the same kvno in both
realms. This kvno is reflected in the kvno field of the enc-part field
of the Ticket issued by realm A's KDC.

Active Directory (at least for some versions) ignores incoming kvnos and
supplies a kvno of 0 for tickets for cross TGTs. When such a ticket is
processed by an MIT KDC, we treat the 0-valued kvno as "the highest
available kvno," possibly as a happy accident of the
kdb_dbe_search_enctype contract. If the ticket corresponds to the
newest version of the cross-realm TGT, this works fine. However, if an
admin tries to roll over the key of cross TGT principal, old cross-realm
tickets will break.

The most robust solution is to try all kvnos if the protocol kvno is 0.

It is possible that newer versions of AD ameliorate this issue, making
it a lower priority, but I'm really not sure. It's worth noting that
(at least) older versions of AD don't support multiple kvnos in their
cross-realm TGTs, so rolling over the MIT->AD cross TGT will necessarily
break old tickets.
See http://mailman.mit.edu/pipermail/krbdev/2010-December/009732.html for
more discussion. The security issue raised there is probably not worth
worrying about, since old versions of TGT keys are already available for
use by clients if they supply a kvno.
After further conversation, it appears that all current versions of AD
have this issue (always using kvno 0 for cross-realm TGTs). They also
have the reverse issue: they don't support multiple keys for their cross-
realm TGT entries, so you can't do key rollover in the MIT->AD direction
without breaking old tickets.
From: ghudson@mit.edu
Subject: SVN Commit

Make cross-TGT key rollover work from AD to MIT

Active Directory always issues cross-realm tickets without a kvno,
which we see as kvno 0. When we see that, try the highest kvno (as we
already do) and then a few preceding kvnos so that key rollover of the
AD->MIT cross TGT can work.

Add new helpers kdc_rd_ap_req, which takes the place of a couple of
steps from kdc_process_tgs_req, and find_server_key, which takes the
place of some of the end steps of kdc_get_server_key.

Code changes by Nicolas Williams. Test cases by me.

https://github.com/krb5/krb5/commit/c6a956c0104a887fb5ed64da3473853d819a1b7b
Commit By: ghudson
Revision: 25799
Changed Files:
U trunk/src/kdc/kdc_util.c
U trunk/src/tests/t_keyrollover.py