Handle referral realm in kprop client principal
authorGreg Hudson <ghudson@mit.edu>
Tue, 16 Nov 2010 02:30:16 +0000 (02:30 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 16 Nov 2010 02:30:16 +0000 (02:30 +0000)
commitc85548fbd98abfece8148cf4c15ddb6a6c6f34a9
treed6a3ce34375022b7fbaaa2fba416b9ab7a814a9d
parent9a7cd206577496b94c191328762832e19c089838
Handle referral realm in kprop client principal

kprop uses krb5_sname_to_principal() to determine its client
principal.  If the local hostname cannot be mapped to a realm based on
the profile's domain_realm section, krb5_sname_to_principal() will (as
of 1.6) return a principal with the referral realm (""), which does
not work in a client principal.  Handle this by substituting the
default realm.

ticket: 6819
target_version: 1.9
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24518 dc483132-0cff-0310-8789-dd5450dbe970
src/slave/kprop.c