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)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Mar 2022 03:16:35 +0000 (03:16 +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>
source3/rpc_client/cli_netlogon.c

index 049186e5a515630e80d746e964b9f39f423c2a57..50dae9d7f3eb6500dd62038d2f82832c3989f641 100644 (file)
@@ -687,6 +687,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 {