svn rev #17970: trunk/src/kdc/

raeburn@MIT.EDU raeburn at MIT.EDU
Sat Apr 29 03:06:35 EDT 2006


Commit By: raeburn
Log Message: 
ticket: new
subject: ipv4+ipv6 messages can trip up KDC replay detection

The replay lookaside cache includes the sending address, but the krb5
library replay cache does not.  So, if the same message arrives from
two different source addresses, it is considered a replay by the KDC.
If the client isn't receiving the replies for some reason, and the
client has multiple addresses it uses to contact different addresses
on the KDC (and trying to reach the KDC via both IPv4 and IPv6 is an
obvious such case), this can cause errors to be returned by the KDC.

* replay.c (krb5_kdc_replay_ent): Remove "addrs" field.
(MATCH): Don't check it.
(kdc_check_lookaside, kdc_insert_lookaside): Remove "from" argument.
* kdc_util.h (kdc_check_lookaside, kdc_insert_lookaside): Update decls.
* dispatch.c (dispatch): Update calls.



Changed Files:
U   trunk/src/kdc/dispatch.c
U   trunk/src/kdc/kdc_util.h
U   trunk/src/kdc/replay.c



More information about the cvs-krb5 mailing list