[krbdev.mit.edu #1618] src/windows/ms2mit inserts local addresses into MS Tickets during conversion
via RT
rt-comment at krbdev.mit.edu
Fri Jun 20 20:53:59 EDT 2003
Here is the patch. Please apply for 1.3.
Index: ms2mit.c
===================================================================
RCS file: /cvs/krbdev/krb5/src/windows/ms2mit/ms2mit.c,v
retrieving revision 1.2
diff -r1.2 ms2mit.c
267,271c267,271
< // krb5_cc_store_cred crashes downstream if creds->addresses is NULL.
< // unfortunately, the MS interface doesn't seem to return a list of
< // addresses as part of the credentials information. for now i'll just
< // use krb5_os_localaddr to mock up the address list. is this
sufficient?
< krb5_os_localaddr(context, &creds->addresses);
---
> /* MS Tickets are addressless. MIT requires an empty address
> * not a NULL list of addresses.
> */
> creds->addresses = (krb5_address **)malloc(sizeof(krb5_address *));
> memset(creds->addresses, 0, sizeof(krb5_address *));
Index: ChangeLog
===================================================================
RCS file: /cvs/krbdev/krb5/src/windows/ms2mit/ChangeLog,v
retrieving revision 1.3
diff -r1.3 ChangeLog
0a1,7
> 2003-06-20 Jeffrey Altman <jaltman at mit.edu>
>
> * ms2mit.c: Windows Credentials are addressless. Do not store
> the credentials in the MIT cache with addresses since they
> do not contain addresses in the encrypted portion of the
> credential. Instead generate a valid empty address list.
>
More information about the krb5-bugs
mailing list