krb5-wrap: Use the principal returned by the KDC to create the ccache
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 3 Feb 2015 12:00:34 +0000 (13:00 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 30 Jul 2015 08:24:26 +0000 (10:24 +0200)
commitb9203dc1571be66a6dd23c88a93d0efd6d305f03
treecda577ea7437f7612084b3917e1a65373aa9021a
parent217d4c1531aab25a1a93962ce38ff7fe9ac1bb2c
krb5-wrap: Use the principal returned by the KDC to create the ccache

We request a TGT in uppercase from the KDC. We turned on
canonicalization for that so the KDC returns the principal in lowercase
cause of this. As we use the uppercase prinicpal to create the ccache we
fail to find the tickets we need later because it is stored in the
incorrect case. You have to use the princial returned by the KDC here.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/krb5_wrap/krb5_samba.c