s4:auth_winbind: explicitly use dcerpc_binding_handle_set_sync_ev() for irpc
authorAndrew Bartlett <abartlet@samba.org>
Mon, 5 May 2014 04:27:59 +0000 (16:27 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 May 2014 22:08:12 +0000 (00:08 +0200)
This indicates that we're using nested event loops...

Andrew Bartlett

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Change-Id: I08f21876d42197f76fe3ae10b4f464626d70bf5a
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/auth/ntlm/auth_winbind.c

index 3f470fc557ad46e493115e9855f55e33f4739aa8..26d2d079b126e7f3e6bd72a9cd3eff080f590de2 100644 (file)
@@ -136,6 +136,8 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx,
 
        s->req.in.validation_level      = 3;
 
+       /* Note: this makes use of nested event loops... */
+       dcerpc_binding_handle_set_sync_ev(irpc_handle, ctx->auth_ctx->event_ctx);
        status = dcerpc_winbind_SamLogon_r(irpc_handle, s, &s->req);
        NT_STATUS_NOT_OK_RETURN(status);