summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source4/auth/ntlm/auth_winbind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/ntlm/auth_winbind.c b/source4/auth/ntlm/auth_winbind.c
index 3f470fc557a..26d2d079b12 100644
--- a/source4/auth/ntlm/auth_winbind.c
+++ b/source4/auth/ntlm/auth_winbind.c
@@ -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);