]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:auth: let auth_winbind pass WBC_AUTH_PARAM_FLAGS_FOR_NETLOGON if needed
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Mar 2025 16:08:24 +0000 (17:08 +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>
source3/auth/auth_winbind.c

index ee0704f238bcb9fa9968a21bc63b593f252c55c9..b8a7dcb05a7d8d79caa0100d55f3af49b6794917 100644 (file)
@@ -96,6 +96,10 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
                        user_info->password.response.lanman.data;
        }
 
+       if (auth_context->for_netlogon) {
+               params.flags |= WBC_AUTH_PARAM_FLAGS_FOR_NETLOGON;
+       }
+
        /* we are contacting the privileged pipe */
        become_root();
        wbc_status = wbcAuthenticateUserEx(&params, &info, &err);