Subject: | Patch for addressless tickets. |
From: | Stephen Smoogen <smoogen@lanl.gov> |
To: | krb5-bugs@mit.edu |
Date: | 05 Mar 2003 08:46:38 -0700 |
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 --
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 --