kaserver-krb-udp-construct-well-formed-tickets-20010806
authorDerrick Brashear <shadow@dementia.org>
Tue, 7 Aug 2001 00:08:01 +0000 (00:08 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Aug 2001 00:08:01 +0000 (00:08 +0000)
certain things really want the realm to be set correctly and not just left
blank in tickets; existing krb4 kdcs get this correct. now so do we.

src/kauth/krb_udp.c

index 0c10254..81b77f0 100644 (file)
@@ -322,7 +322,7 @@ afs_int32 UDP_Authenticate (ksoc, client, name, inst, startTime, endTime, sname,
                        startTime + ntohl(tentry.max_ticket_lifetime));
        if ((code = ka_LookupKey (tt, sname, sinst, &tgskvno, &tgskey)) ||
            (code = tkt_MakeTicket (ticket, &ticketLen, &tgskey,
-                                   name, inst, "",
+                                   name, inst, lrealm,
                                    startTime, endTime, &sessionKey,
                                    htonl(client->sin_addr.s_addr), sname, sinst)))
            goto abort;