mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:kdc: pass down event_context explicit
metze
This commit is contained in:
parent
37b6950961
commit
f271469931
@ -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)) {
|
||||
|
@ -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 */
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user