1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00

libcli/auth: don't loose server_dns_domain in netlogon_creds_cli_context_global()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-11-07 14:44:21 +01:00
parent 544838ac5b
commit aea024779f

View File

@ -518,6 +518,10 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
auth_level = DCERPC_AUTH_LEVEL_INTEGRITY; auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
} }
if (server_dns_domain == NULL) {
server_dns_domain = "";
}
status = netlogon_creds_cli_context_common(client_computer, status = netlogon_creds_cli_context_common(client_computer,
client_account, client_account,
type, type,
@ -526,7 +530,7 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
required_flags, required_flags,
server_computer, server_computer,
server_netbios_domain, server_netbios_domain,
"", server_dns_domain,
mem_ctx, mem_ctx,
&context); &context);
if (!NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {