From 04968ead5ff790cc6a2e573b5fb545e135243b4e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 21 Mar 2025 17:08:24 +0100 Subject: [PATCH] s3:auth: let auth_winbind pass WBC_AUTH_PARAM_FLAGS_FOR_NETLOGON if needed Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source3/auth/auth_winbind.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index ee0704f238b..b8a7dcb05a7 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -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(¶ms, &info, &err); -- 2.47.3