There is a bug in the messenging code causing samba to not terminate if another process is using a port that samba needs. Samba simply sticks an error in the log file NT_STATUS_ADDRESS_ALREADY_ASSOCIATED and the rest of the services still start. This causes many issues that are hard to troubleshoot. I sent this to the samba-technical mailing list https://lists.samba.org/archive/samba-technical/2013-January/089731.html, and Stefan has already created a patch for it that I can confirm does work. This would be quite handy to have in 4.0.1.
Created attachment 8399 [details]
proposed patch cherry-picked from master
Karolin, please for the next release
Pushed to autobuild-v4-0-test.
Pushed to v4-0-test.
Closing out bug report.