From: Tom Yu Date: Wed, 30 Jul 1997 22:30:06 +0000 (+0000) Subject: * kdc_util.c: X-Git-Tag: krb5-1.1-beta1~1076 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82be3509cfc4c62fe3f6549bea5c335c885354e2;p=krb5.git * kdc_util.c: * main.c: Don't use an rcache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10148 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 133f86372..752935715 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 30 18:29:19 1997 Tom Yu + + * kdc_util.c: + * main.c: Don't use an rcache. + Fri Jul 25 15:44:07 1997 Tom Yu * main.c (init_realm): Fix to use new ktkdb. diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index 9211b186f..06af6bece 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -207,10 +207,11 @@ kdc_process_tgs_req(request, from, pkt, ticket, subkey) if ((retval = krb5_auth_con_setaddrs(kdc_context, auth_context, NULL, from->address)) ) goto cleanup_auth_context; - +#ifdef USE_RCACHE if ((retval = krb5_auth_con_setrcache(kdc_context, auth_context, kdc_rcache))) goto cleanup_auth_context; +#endif /* if ((retval = kdc_get_server_key(apreq->ticket, &key, &kvno))) @@ -232,6 +233,7 @@ kdc_process_tgs_req(request, from, pkt, ticket, subkey) apreq->ticket->server, kdc_active_realm->realm_keytab, NULL, ticket))) { +#ifdef USE_RCACHE /* * I'm not so sure that this is right, but it's better than nothing * at all. @@ -256,6 +258,7 @@ kdc_process_tgs_req(request, from, pkt, ticket, subkey) } } else goto cleanup_auth_context; +#endif } /* "invalid flag" tickets can must be used to validate */ @@ -315,7 +318,9 @@ cleanup_authenticator: cleanup_auth_context: /* We do not want the free of the auth_context to close the rcache */ +#ifdef USE_RCACHE (void) krb5_auth_con_setrcache(kdc_context, auth_context, 0); +#endif krb5_auth_con_free(kdc_context, auth_context); cleanup: diff --git a/src/kdc/main.c b/src/kdc/main.c index 0b8bfdd0e..217556649 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -803,6 +803,7 @@ initialize_realms(kcontext, argc, argv) } } +#ifdef USE_RCACHE /* * Now handle the replay cache. */ @@ -810,6 +811,7 @@ initialize_realms(kcontext, argc, argv) com_err(argv[0], retval, "while initializing KDC replay cache"); exit(1); } +#endif /* Ensure that this is set for our first request. */ kdc_active_realm = kdc_realmlist[0];