W2k8 does not support *SMBSERVER as called_name (one of the main inventions of CIFS over SMB) anymore. If port 445 is slow to respond for some reason, winbind connects to port 139 and gives up when the DC gives "called name not present" in the netbios sessoin request. The about to be attached patchsets allow the 139 connection to fail when 445 is just slow. The failure to connect to 139 will not be seen as fatal in case 445 eventually succeeds. Volker
Created attachment 6159 [details] Patch for 3.4
Created attachment 6160 [details] Patch for 3.5
Comment on attachment 6159 [details] Patch for 3.4 Looks good
Comment on attachment 6160 [details] Patch for 3.5 Looks good
Karolin please pick for the next releases
Pushed to v3-4-test and v3-5-test. Closing out bug report. Thanks!
The patch is broken. Fix to follow.
Created attachment 6225 [details] Patch The attached patch applies to 3.4 and 3.5 for me.
Comment on attachment 6225 [details] Patch Looks good. For master/3.6 we could think about removing the 'subreq' variable completely and use state->req_139 also in the if (port == 139) { code path. metze
We could also use nb_connect_send() directly in the if (port == 139) { case.
(In reply to comment #8) > Created an attachment (id=6225) [details] > Patch > > The attached patch applies to 3.4 and 3.5 for me. Pushed to v3-5-test and v3-4-test. Will be included in Samba 3.4.11 and 3.5.7. Re-assigning to Volker to comment on Metze's proposals for master/3.6.
See e697253263f9c5138f71574c8f35d1e5e7d957a5 in master