kdc: Build ticket with the canonical server name
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Nov 2010 04:05:33 +0000 (15:05 +1100)
committerStefan Metzmacher <metze@samba.org>
Mon, 25 Jul 2011 07:47:07 +0000 (09:47 +0200)
We need to use the name that the HDB entry returned, otherwise we
will not canonicalise the reply if requested.

Andrew Bartlett

kdc/krb5tgs.c

index 58747177c238e12759f35b5047e820d353ff701b..c74676cc5d99a2c3b7ec31e6b8244fffeb6b61ef 100644 (file)
@@ -2208,7 +2208,7 @@ server_lookup:
                         kvno,
                         *auth_data,
                         server,
-                        sp,
+                        server->entry.principal,
                         spn,
                         client,
                         cp,