From fd21c3685a691b1d2af597df41161e03e9bfe2df Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 21 Mar 2025 18:37:49 +0100 Subject: [PATCH] s4:auth/ntlm: let auth_winbind pass WB_SAMLOGON_FOR_NETLOGON Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source4/auth/ntlm/auth_winbind.c | 4 ++++ 1 file changed, 4 insertions(+) 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")); -- 2.47.3