diff options
author | Simo Sorce <idra@samba.org> | 2010-01-28 00:08:36 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-01-28 19:33:34 -0500 |
commit | c6865af4450432bec3f5383d6c815934ac89d434 (patch) | |
tree | c6c811678a06090d1ecb39aba4405d8445a4d1fc /source4/kdc/hdb-samba4.h | |
parent | f387ed88e8b5b32eb121724d99d73d8ce55e745e (diff) | |
download | samba-c6865af4450432bec3f5383d6c815934ac89d434.tar.gz samba-c6865af4450432bec3f5383d6c815934ac89d434.tar.bz2 samba-c6865af4450432bec3f5383d6c815934ac89d434.zip |
s4:kdc Use better db context structure
This allows to use a common structure not tied to hdb_samba4
Also allows to avoid many casts within hdb_samba4 functions
This is the first step to abstract samba kdc databse functions
so they can be used by the MIT forthcoming plugin.
Diffstat (limited to 'source4/kdc/hdb-samba4.h')
-rw-r--r-- | source4/kdc/hdb-samba4.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/kdc/hdb-samba4.h b/source4/kdc/hdb-samba4.h index 5f85ce188c..3fa63ee542 100644 --- a/source4/kdc/hdb-samba4.h +++ b/source4/kdc/hdb-samba4.h @@ -20,11 +20,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -struct hdb_samba4_context { +struct samba_kdc_base_context { struct tevent_context *ev_ctx; struct loadparm_context *lp_ctx; }; +struct samba_kdc_seq; + +struct samba_kdc_db_context { + struct tevent_context *ev_ctx; + struct loadparm_context *lp_ctx; + struct ldb_context *samdb; +}; + extern struct hdb_method hdb_samba4; struct hdb_samba4_private { |