Requesting use of addresses in forwardable tickets
Douglas E. Engert
deengert at anl.gov
Wed Sep 11 16:49:01 EDT 2002
Sam Hartman wrote:
>
> Sure it does; these are also in the reply. Patch shortly.
>
OK, how about something like this. fwd_tgt.c only passes address if the
TGT has addresses. get_in_tkt.c will use what is passed. For a
forwarded request it will not assume addrs=NULL means call krb5_os_localaddr.
*** ,fwd_tgt.c Mon Dec 3 15:40:52 2001
--- fwd_tgt.c Wed Sep 11 15:41:58 2002
***************
*** 103,111 ****
--- 103,113 ----
krb5_free_cred_contents (context, &in);
}
+ if (tgt.addresses) {
retval = krb5_os_hostaddr(context, rhost, &addrs);
if (retval)
goto errout;
+ }
if ((retval = krb5_copy_principal(context, client, &creds.client)))
goto errout;
*** ,get_in_tkt.c Thu Mar 14 10:09:41 2002
--- get_in_tkt.c Wed Sep 11 13:49:49 2002
***************
*** 448,453 ****
--- 448,456 ----
if (addrs)
request.addresses = (krb5_address **) addrs;
else
+ if (options & KDC_OPT_FORWARDED)
+ ;
+ else
if ((retval = krb5_os_localaddr(context, &request.addresses)))
goto cleanup;
request.kdc_options = options;
--
Douglas E. Engert <DEEngert at anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
More information about the krbdev
mailing list