[krbdev.mit.edu #7790] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu Aug 13 11:53:30 EDT 2015


Make cross-realm S4U2Self work

When sending a S4U2Self query to a foreign realm, send an enterprise
server principal so that the foreign KDC can identify the home realm
of the server principal.

To make this work, adjust the memory management of
krb5_get_self_cred_from_kdc().  s4u_creds is now a shallow copy of
in_creds which owns no memory.  A new variable eprinc owns the
enterprise form of the server principal, constructed using a new
helper function convert_to_enterprise().  Since we have to set the
server realm for KDC-REQ encoding to work, a new temporary variable
sprinc holds a shallow copy of *eprinc with the realm pointing to the
realm we are currently querying.

Based on a patch by Sumit Bose.

https://github.com/krb5/krb5/commit/16128e80d30b4f5e03c2f4fd3d1024216eed3fa4
Author: Greg Hudson <ghudson at mit.edu>
Commit: 16128e80d30b4f5e03c2f4fd3d1024216eed3fa4
Branch: master
 src/lib/krb5/krb/s4u_creds.c |   58 ++++++++++++++++++++++++++---------------
 src/tests/gssapi/t_s4u.py    |   17 ++++++++++++
 2 files changed, 54 insertions(+), 21 deletions(-)



More information about the krb5-bugs mailing list