]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:auth/ntlm: let auth_winbind pass WB_SAMLOGON_FOR_NETLOGON
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Mar 2025 17:37:49 +0000 (18:37 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 3 Apr 2025 09:36:31 +0000 (09:36 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/auth/ntlm/auth_winbind.c

index 2b1cc51cd03438e0d19d1b0130f6020898906048..fb53fcd5bed6d96183228bb3b46a7647edb9c92f 100644 (file)
@@ -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"));