1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-05 04:23:51 +03:00

r17339: pass the event context and messaging context together to the

smb ejs functions

metze
This commit is contained in:
Stefan Metzmacher
2006-07-31 13:34:00 +00:00
committed by Gerald (Jerry) Carter
parent 02ec14e553
commit 0397911b41
3 changed files with 28 additions and 4 deletions

View File

@@ -39,8 +39,17 @@ static int ejs_doauth(MprVarHandle eid,
struct MprVar *session_info_obj;
NTSTATUS nt_status;
/* Hope we can find the event context somewhere up there... */
struct event_context *ev = event_context_find(tmp_ctx);
struct smbcalls_context *c;
struct event_context *ev;
/* 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;
} else {
/* Hope we can find the event context somewhere up there... */
ev = event_context_find(tmp_ctx);
}
nt_status = auth_context_create(tmp_ctx, auth_types, &auth_context, ev);
if (!NT_STATUS_IS_OK(nt_status)) {