mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-kdb: implement get_time function
This commit is contained in:
parent
6e010fedaa
commit
b5ba0f7f48
@ -388,7 +388,11 @@ static krb5_error_code ipadb_create(krb5_context kcontext,
|
|||||||
static krb5_error_code ipadb_get_age(krb5_context kcontext,
|
static krb5_error_code ipadb_get_age(krb5_context kcontext,
|
||||||
char *db_name, time_t *age)
|
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,
|
static krb5_error_code ipadb_get_principal(krb5_context kcontext,
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <kdb.h>
|
#include <kdb.h>
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
struct ipadb_context {
|
struct ipadb_context {
|
||||||
char *uri;
|
char *uri;
|
||||||
|
Loading…
Reference in New Issue
Block a user