summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-03-04 11:41:20 +0100
committerJule Anger <janger@samba.org>2022-03-16 14:27:11 +0000
commite7a0e1db90d1accd7b3602e5d0a088de74bd329d (patch)
tree764f9e280721e7cebd905dcd8172dbbe0b32442c
parentc331fc104e75d303e42ef88097bf88851941f4d2 (diff)
downloadsamba-e7a0e1db90d1accd7b3602e5d0a088de74bd329d.tar.gz
s3:rpc_client: let rpccli_netlogon_network_logon() fallback to workstation = lp_netbios_name()
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)
-rw-r--r--source3/rpc_client/cli_netlogon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index 175f83d6750..efaa6f9ead6 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -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 {