From 56f4516399431cc508ca0c3e0dd7f179cc7ab62c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 27 Jul 2009 16:09:25 +1000 Subject: s4:kdc Push context to hdb_samba4 by way of the 'name' of the DB This overloads the 'name' part of the keytab name to supply a context pointer, and so avoids 3 global variables! To do this, we had to stop putting the entry for kpasswd into the secrets.ldb. (I don't consider this a big loss, and any entry left there by an upgrade will be harmless). Andrew Bartlett --- source4/kdc/hdb-samba4.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/kdc/hdb-samba4.h') diff --git a/source4/kdc/hdb-samba4.h b/source4/kdc/hdb-samba4.h index 3a377ddf0b..0b39fdfb10 100644 --- a/source4/kdc/hdb-samba4.h +++ b/source4/kdc/hdb-samba4.h @@ -21,8 +21,12 @@ */ extern TALLOC_CTX *hdb_samba4_mem_ctx; -extern struct tevent_context *hdb_samba4_ev_ctx; -extern struct loadparm_context *hdb_samba4_lp_ctx; + +struct hdb_samba4_context { + struct tevent_context *ev_ctx; + struct loadparm_context *lp_ctx; +}; + extern struct hdb_method hdb_samba4; struct hdb_samba4_private { -- cgit