Move kdc_get_policy helper in the lsa server where it belongs.
commit4b29cf5f66c5e75f759a5c2a79ba26629f907778
authorSimo Sorce <idra@samba.org>
Thu, 19 Apr 2012 21:54:57 +0000 (19 17:54 -0400)
committerSimo Sorce <idra@samba.org>
Thu, 19 Apr 2012 23:53:37 +0000 (20 01:53 +0200)
treebd2d0eadafc8387bb7dc79166af4beb0d926d63f
parent37e98ff252edc5e76d2c74a8459247ffcb5fd101
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 <idra@samba.org>
Autobuild-Date: Fri Apr 20 01:53:37 CEST 2012 on sn-devel-104
source4/kdc/db-glue.c
source4/kdc/kdc-policy.h [deleted file]
source4/kdc/policy.c [deleted file]
source4/kdc/samba_kdc.h
source4/kdc/wscript_build [changed mode: 0644->0755]
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/wscript_build