mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +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 5c04c01354944fc3a64bb109bf3e9bf89086cc6f)
This commit is contained in:
parent
e692648453
commit
02824c7942
@ -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…
x
Reference in New Issue
Block a user