Samba configured for use 445 port instead of NetBIOS API. - disabled nmbd, - add 'disable netbios' set to 'yes' in smb.conf - add 'smb ports = 445' in smb.conf but its still sending netbios-ssn to domain controller on port 139. disable_netbios option is not evaluated in some calls to cli_connect_nb()
Created attachment 14759 [details] master
Created attachment 14760 [details] v4.9
Comment on attachment 14760 [details] v4.9 Ups wrong patch.
Woops, uploaded the wrong patches. Disregard the patches before this comment. I will upload the correct ones soon.
attachment #14760 [details] is obsolete or not ?
Created attachment 14763 [details] master
Created attachment 14764 [details] v4.9
Apologies for the confusion, the correct patches are added now. Thanks!
Karolin, please add the patch to the next 4.9 release. Thanks!
Comment on attachment 14764 [details] v4.9 smbsock_connect_send() should also skip this! state->req_139 = tevent_wakeup_send(... I think we should just add something like: if (lp_disable_netbios()) return req; } before.
Please also use git cherry-pick -x when creating backports the next time, thanks!
Created attachment 14777 [details] patch for 4.9
Comment on attachment 14777 [details] patch for 4.9 Can you put the line: BUG: https://bugzilla.samba.org/show_bug.cgi?id=13727 in the commit comment section of: [PATCH 1/5] s3:libsmb: Check disable_netbios in socket connect please ? That way all associated patches are flagged with the correct bugid. Thanks, Jeremy.
Created attachment 14785 [details] patch v2 for 4.9 I've added the bug marker.
Created attachment 14787 [details] patch for 4.10
Re-assigning to Karolin for inclusion in 4.9.next, 4.10.rcNext.
(In reply to Jeremy Allison from comment #16) Pushed to autobuild-v4-{9,10}-test.
Pushed to both branches. Closing out bug report. Thanks!