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/libnet | |
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/libnet')
-rw-r--r-- | source4/libnet/libnet_export_keytab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/libnet/libnet_export_keytab.c b/source4/libnet/libnet_export_keytab.c index a7006b4bf9..da095e39f8 100644 --- a/source4/libnet/libnet_export_keytab.c +++ b/source4/libnet/libnet_export_keytab.c @@ -13,15 +13,15 @@ NTSTATUS libnet_export_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, s /* Register hdb-samba4 hooks for use as a keytab */ - struct hdb_samba4_context *hdb_samba4_context = talloc(mem_ctx, struct hdb_samba4_context); - if (!hdb_samba4_context) { + struct samba_kdc_base_context *base_ctx = talloc_zero(mem_ctx, struct samba_kdc_base_context); + if (!base_ctx) { return NT_STATUS_NO_MEMORY; } - hdb_samba4_context->ev_ctx = ctx->event_ctx; - hdb_samba4_context->lp_ctx = ctx->lp_ctx; + base_ctx->ev_ctx = ctx->event_ctx; + base_ctx->lp_ctx = ctx->lp_ctx; - from_keytab = talloc_asprintf(hdb_samba4_context, "HDB:samba4&%p", hdb_samba4_context); + from_keytab = talloc_asprintf(base_ctx, "HDB:samba4&%p", base_ctx); if (!from_keytab) { return NT_STATUS_NO_MEMORY; } |