From: Stefan Metzmacher Date: Fri, 21 Mar 2025 17:37:49 +0000 (+0100) Subject: s4:auth/ntlm: let auth_winbind pass WB_SAMLOGON_FOR_NETLOGON X-Git-Tag: tevent-0.17.0~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd21c3685a691b1d2af597df41161e03e9bfe2df;p=thirdparty%2Fsamba.git s4:auth/ntlm: let auth_winbind pass WB_SAMLOGON_FOR_NETLOGON Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source4/auth/ntlm/auth_winbind.c b/source4/auth/ntlm/auth_winbind.c index 2b1cc51cd03..fb53fcd5bed 100644 --- a/source4/auth/ntlm/auth_winbind.c +++ b/source4/auth/ntlm/auth_winbind.c @@ -89,6 +89,10 @@ static struct tevent_req *winbind_check_password_send(TALLOC_CTX *mem_ctx, state->user_info = user_info; state->authoritative = true; + if (ctx->auth_ctx->for_netlogon) { + state->req.in.internal_flags |= WB_SAMLOGON_FOR_NETLOGON; + } + msg_ctx = imessaging_client_init(state, ctx->auth_ctx->lp_ctx, ev); if (msg_ctx == NULL) { DEBUG(1, ("imessaging_init failed\n"));