+Wed Jul 30 18:29:19 1997 Tom Yu <tlyu@mit.edu>
+
+ * kdc_util.c:
+ * main.c: Don't use an rcache.
+
Fri Jul 25 15:44:07 1997 Tom Yu <tlyu@mit.edu>
* main.c (init_realm): Fix to use new ktkdb.
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)))
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.
}
} else
goto cleanup_auth_context;
+#endif
}
/* "invalid flag" tickets can must be used to validate */
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:
}
}
+#ifdef USE_RCACHE
/*
* Now handle the replay cache.
*/
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];