Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by krbdev.mit.edu (8.9.3) with ESMTP id KAA16877; Wed, 5 Mar 2003 10:46:39 -0500 (EST) Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id KAA19935 for ; Wed, 5 Mar 2003 10:46:38 -0500 (EST) Received: from smoogen1.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (8.12.8/8.12.8/(ccn-5)) with ESMTP id h25Fkc68027003 for ; Wed, 5 Mar 2003 08:46:38 -0700 Subject: Patch for addressless tickets. From: Stephen Smoogen To: krb5-bugs@mit.edu Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 05 Mar 2003 08:46:38 -0700 Message-Id: <1046879198.3384.13.camel@smoogen1.lanl.gov> MIME-Version: 1.0 X-RT-Original-Encoding: iso-8859-1 Content-Length: 1052 This patch is being used at Los Alamos to allow better use of addressless tickets on large clusters. The writer of this patch is Harry McGavern. Patch's cleanly against Red Hat's patched version of krb5-1.2.6 and krb5-1.2.7. --- ./src/lib/krb5/krb/fwd_tgt.c.LANL_addresslesstickets Mon Dec 3 14:40:52 2001 +++ ./src/lib/krb5/krb/fwd_tgt.c Tue Oct 1 12:02:13 2002 @@ -103,9 +103,11 @@ krb5_free_cred_contents (context, &in); } - retval = krb5_os_hostaddr(context, rhost, &addrs); - if (retval) + if (tgt.addresses && *tgt.addresses) { + retval = krb5_os_hostaddr(context, rhost, &addrs); + if (retval) goto errout; + } if ((retval = krb5_copy_principal(context, client, &creds.client))) goto errout; krb5-1.2.6-LANL_addresslesstickets lines 1-16/16 (END) -- Stephen John Smoogen smoogen@lanl.gov Los Alamos National Labrador CCN-2 B-Schedule PH: Ta-03 SM-261 MailStop P208 DP 17U Los Alamos, NM 87545 -- So shines a good deed in a weary world. = Willy Wonka --