kaserver-set-realm-name-in-tgts-20020708

based on comment from Chaskiel Grandman regarding observed poor
interoperability of klog-generated tgts with other kdcs where key is
otherwise same
This commit is contained in:
Derrick Brashear 2002-07-08 21:17:38 +00:00
parent 616f796024
commit 66bd2d780e

View File

@ -1109,7 +1109,7 @@ static afs_int32 Authenticate (version, call, aname, ainstance, start, end,
if (code) goto abort;
code = tkt_MakeTicket (ticket, &ticketLen, &tgskey,
aname, ainstance, "", start, end, &sessionKey,
aname, ainstance, lrealm, start, end, &sessionKey,
rx_HostOf(rx_PeerOf(rx_ConnectionOf(call))),
sname, sinst);
if (code) goto abort;
@ -1144,7 +1144,7 @@ static afs_int32 Authenticate (version, call, aname, ainstance, start, end,
case 2:
code = PrepareTicketAnswer
(oanswer, request.time+1, ticket, ticketLen, &sessionKey,
start, end, &tentry, &server, "",
start, end, &tentry, &server, lrealm,
(tgt ? KA_GETTGT_ANS_LABEL : KA_GETADM_ANS_LABEL));
if (code) goto abort;
#ifdef EXPIREPW