diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-29 09:37:02 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-29 09:46:38 +0100 |
commit | f271469931f83c7b3cf81a9911ff15f761925ad1 (patch) | |
tree | ad36ec1c52525cf7a3b5a93a1fe355b8d24e16be /source4 | |
parent | 37b6950961064ef443a91e8bc415a5c582a2d0a6 (diff) | |
download | samba-f271469931f83c7b3cf81a9911ff15f761925ad1.tar.gz samba-f271469931f83c7b3cf81a9911ff15f761925ad1.tar.bz2 samba-f271469931f83c7b3cf81a9911ff15f761925ad1.zip |
s4:kdc: pass down event_context explicit
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/kdc/hdb-samba4.c | 2 | ||||
-rw-r--r-- | source4/kdc/kdc.c | 2 | ||||
-rw-r--r-- | source4/kdc/kdc.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c index b6a48e79d0..ff267261ed 100644 --- a/source4/kdc/hdb-samba4.c +++ b/source4/kdc/hdb-samba4.c @@ -1548,7 +1548,7 @@ krb5_error_code hdb_samba4_create(krb5_context context, struct HDB **db, const c { NTSTATUS nt_status; /* The global kdc_mem_ctx and kdc_lp_ctx, Disgusting, ugly hack, but it means one less private hook */ - nt_status = kdc_hdb_samba4_create(kdc_mem_ctx, event_context_find(kdc_mem_ctx), kdc_lp_ctx, + nt_status = kdc_hdb_samba4_create(kdc_mem_ctx, kdc_ev_ctx, kdc_lp_ctx, context, db, arg); if (NT_STATUS_IS_OK(nt_status)) { diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c index 45fa803d04..81ac94c482 100644 --- a/source4/kdc/kdc.c +++ b/source4/kdc/kdc.c @@ -44,6 +44,7 @@ /* Disgusting hack to get a mem_ctx and lp_ctx into the hdb plugin, when * used as a keytab */ TALLOC_CTX *kdc_mem_ctx; +struct event_context *kdc_ev_ctx; struct loadparm_context *kdc_lp_ctx; /* hold all the info needed to send a reply */ @@ -765,6 +766,7 @@ static void kdc_task_init(struct task_server *task) krb5_kdc_windc_init(kdc->smb_krb5_context->krb5_context); kdc_mem_ctx = kdc->smb_krb5_context; + kdc_ev_ctx = task->event_ctx; kdc_lp_ctx = task->lp_ctx; /* start listening on the configured network interfaces */ diff --git a/source4/kdc/kdc.h b/source4/kdc/kdc.h index 7e82ad24c4..2ea75099d9 100644 --- a/source4/kdc/kdc.h +++ b/source4/kdc/kdc.h @@ -31,6 +31,7 @@ struct kdc_server; struct socket_address; extern TALLOC_CTX *kdc_mem_ctx; +extern struct event_context *kdc_ev_ctx; extern struct loadparm_context *kdc_lp_ctx; bool kpasswdd_process(struct kdc_server *kdc, |