From 7a845bcb0141a895d5685afcef1ffe7f93428d0f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 31 Jul 2006 14:05:08 +0000 Subject: r17341: pass a messaging context to auth_context_create() and gensec_server_start(). calling them with NULL for event context or messaging context is no longer allowed! metze (This used to be commit 679ac74e71b111344f1097ab389c0b83a9247710) --- source4/scripting/ejs/smbcalls_auth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/scripting') diff --git a/source4/scripting/ejs/smbcalls_auth.c b/source4/scripting/ejs/smbcalls_auth.c index 678d3c6a7f..281f35bb20 100644 --- a/source4/scripting/ejs/smbcalls_auth.c +++ b/source4/scripting/ejs/smbcalls_auth.c @@ -26,6 +26,7 @@ #include "auth/auth.h" #include "scripting/ejs/smbcalls.h" #include "lib/events/events.h" +#include "lib/messaging/irpc.h" static int ejs_doauth(MprVarHandle eid, TALLOC_CTX *tmp_ctx, struct MprVar *auth, const char *username, @@ -41,17 +42,20 @@ static int ejs_doauth(MprVarHandle eid, struct smbcalls_context *c; struct event_context *ev; + struct messaging_context *msg; /* Hope we can find an smbcalls_context somewhere up there... */ c = talloc_find_parent_bytype(tmp_ctx, struct smbcalls_context); if (c) { ev = c->event_ctx; + msg = c->msg_ctx; } else { /* Hope we can find the event context somewhere up there... */ ev = event_context_find(tmp_ctx); + msg = messaging_client_init(tmp_ctx, ev); } - nt_status = auth_context_create(tmp_ctx, auth_types, &auth_context, ev); + nt_status = auth_context_create(tmp_ctx, auth_types, ev, msg, &auth_context); if (!NT_STATUS_IS_OK(nt_status)) { mprSetPropertyValue(auth, "result", mprCreateBoolVar(False)); mprSetPropertyValue(auth, "report", mprString("Auth System Failure")); -- cgit