svn rev #25374: branches/krb5-1-9/src/kdc/
tlyu@MIT.EDU
tlyu at MIT.EDU
Tue Oct 18 16:18:45 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25374
Commit By: tlyu
Log Message:
ticket: 6941
version_fixed: 1.9.2
status: resolved
pull up r25076 from trunk
------------------------------------------------------------------------
r25076 | ghudson | 2011-08-08 14:27:15 -0400 (Mon, 08 Aug 2011) | 14 lines
ticket: 6941
subject: Fix accidental KDC use of replay cache
target_version: 1.9.2
tags: pullup
r24464 (ticket #6804) intended to remove the KDC replay cache by
eliminating all of the USE_RCACHE code, but it had the unintended side
effect of causing krb5_rd_req_decoded to use the default server
rcache. Using this cache is much less efficient because it is opened
and re-read for each request.
Set appropriate flags on the auth context to disable replay cache use
for TGS requests altogether.
------------------------------------------------------------------------
Changed Files:
U branches/krb5-1-9/src/kdc/kdc_util.c
Modified: branches/krb5-1-9/src/kdc/kdc_util.c
===================================================================
--- branches/krb5-1-9/src/kdc/kdc_util.c 2011-10-18 20:18:41 UTC (rev 25373)
+++ branches/krb5-1-9/src/kdc/kdc_util.c 2011-10-18 20:18:44 UTC (rev 25374)
@@ -249,6 +249,10 @@
if ((retval = krb5_auth_con_init(kdc_context, &auth_context)))
goto cleanup;
+ /* Don't use a replay cache. */
+ if ((retval = krb5_auth_con_setflags(kdc_context, auth_context, 0)))
+ goto cleanup;
+
if ((retval = krb5_auth_con_setaddrs(kdc_context, auth_context, NULL,
from->address)) )
goto cleanup_auth_context;
More information about the cvs-krb5
mailing list