mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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 5c04c01354
)
This commit is contained in:
parent
fcec3b21d9
commit
80f35f7ab6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user