]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_client: let rpccli_netlogon_network_logon() fallback to workstation = lp_netbi...
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Mar 2022 10:41:20 +0000 (11:41 +0100)
committerJule Anger <janger@samba.org>
Wed, 16 Mar 2022 14:27:11 +0000 (14:27 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14641

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 5c04c01354944fc3a64bb109bf3e9bf89086cc6f)

source3/rpc_client/cli_netlogon.c

index 175f83d67501fa92c083d721040ea7145f91403d..efaa6f9ead6dccbba188be6887b1b272115b7a9d 100644 (file)
@@ -656,6 +656,10 @@ NTSTATUS rpccli_netlogon_network_logon(
                return NT_STATUS_NO_MEMORY;
        }
 
+       if (workstation == NULL) {
+               workstation = lp_netbios_name();
+       }
+
        if (workstation[0] != '\\' && workstation[1] != '\\') {
                workstation_name_slash = talloc_asprintf(mem_ctx, "\\\\%s", workstation);
        } else {