]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: don't loose server_dns_domain in netlogon_creds_cli_context_global()
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Nov 2024 13:44:21 +0000 (14:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2024 16:46:37 +0000 (16:46 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libcli/auth/netlogon_creds_cli.c

index 8cf8be2dd540fba38bfe22320477a40287741d60..1750ea3703cfc0f0fd7297a0afebc8b2608e9288 100644 (file)
@@ -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)) {