From aea024779f45e4815b897b89a58b7fed42592804 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 7 Nov 2024 14:44:21 +0100 Subject: [PATCH] libcli/auth: don't loose server_dns_domain in netlogon_creds_cli_context_global() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- libcli/auth/netlogon_creds_cli.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 8cf8be2dd54..1750ea3703c 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -518,6 +518,10 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, auth_level = DCERPC_AUTH_LEVEL_INTEGRITY; } + if (server_dns_domain == NULL) { + server_dns_domain = ""; + } + status = netlogon_creds_cli_context_common(client_computer, client_account, type, @@ -526,7 +530,7 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, required_flags, server_computer, server_netbios_domain, - "", + server_dns_domain, mem_ctx, &context); if (!NT_STATUS_IS_OK(status)) {