From 4b29cf5f66c5e75f759a5c2a79ba26629f907778 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 19 Apr 2012 17:54:57 -0400 Subject: Move kdc_get_policy helper in the lsa server where it belongs. This was used in only 2 places, db-glue.c and the lsa server. In db-glue.c it is awkward though, as it forces to use an unconvenient lsa structure and conversions from time_t to nt_time only to have nt_times converted back to time_t for actual use. This is silly. Also the kdc-policy file was a single funciton library, that's just ridiculous. The loadparm helper is all we need to keep the values consistent, and if we ever end up doing something with group policies we will care about it when it's the time. the code would have to change quite a lot anyway. Autobuild-User: Simo Sorce Autobuild-Date: Fri Apr 20 01:53:37 CEST 2012 on sn-devel-104 --- source4/kdc/samba_kdc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/kdc/samba_kdc.h') diff --git a/source4/kdc/samba_kdc.h b/source4/kdc/samba_kdc.h index 1c3bb1687b..607b436d16 100644 --- a/source4/kdc/samba_kdc.h +++ b/source4/kdc/samba_kdc.h @@ -24,6 +24,12 @@ #ifndef _SAMBA_KDC_H_ #define _SAMBA_KDC_H_ +struct samba_kdc_policy { + time_t svc_tkt_lifetime; + time_t usr_tkt_lifetime; + time_t renewal_lifetime; +}; + struct samba_kdc_base_context { struct tevent_context *ev_ctx; struct loadparm_context *lp_ctx; @@ -39,7 +45,7 @@ struct samba_kdc_db_context { bool rodc; unsigned int my_krbtgt_number; struct ldb_dn *krbtgt_dn; - struct lsa_DomainInfoKerberos policy; + struct samba_kdc_policy policy; }; struct samba_kdc_entry { -- cgit