From 79ae322423d953bb744d031d4eabc77a33223001 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 25 May 2011 14:27:41 -0400 Subject: ipa-kdb: implement get_time function --- daemons/ipa-kdb/ipa_kdb.c | 6 +++++- daemons/ipa-kdb/ipa_kdb.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'daemons') diff --git a/daemons/ipa-kdb/ipa_kdb.c b/daemons/ipa-kdb/ipa_kdb.c index aa0c154a..4e8fb3ae 100644 --- a/daemons/ipa-kdb/ipa_kdb.c +++ b/daemons/ipa-kdb/ipa_kdb.c @@ -388,7 +388,11 @@ static krb5_error_code ipadb_create(krb5_context kcontext, static krb5_error_code ipadb_get_age(krb5_context kcontext, char *db_name, time_t *age) { - return KRB5_PLUGIN_OP_NOTSUPP; + /* just return the current time for now, + * until we can use persistent searches and have + * a better estimate */ + *age = time(NULL); + return 0; } static krb5_error_code ipadb_get_principal(krb5_context kcontext, diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h index f91498a2..008779f7 100644 --- a/daemons/ipa-kdb/ipa_kdb.h +++ b/daemons/ipa-kdb/ipa_kdb.h @@ -27,6 +27,7 @@ #include #include #include +#include struct ipadb_context { char *uri; -- cgit