升级到或安装了Debian9,Samba升级到了4.5.8。发现Ubuntu能用的Samba共享无法被WinXp使用,也无法被我的一些智能设备识别。
经过分析研究,估计各种尝试了有8小时之久,原因很简单,通过问题分析找到可能原因,同时在Man smb.conf里看到相关选项的说明,最后最简单的方案就是下面这句:
ntlm auth (G)
This parameter determines whether or not smbd(8) will attempt to authenticate users using the NTLM encrypted password response. If disabled, either the lanman
password hash or an NTLMv2 response will need to be sent by the client.
If this option, and lanman auth are both disabled, then only NTLMv2 logins will be permited. Not all clients support NTLMv2, and most will require special
configuration to use it.
The primary user of NTLMv1 is MSCHAPv2 for VPNs and 802.1x.
The default changed from "yes" to "no" with Samba 4.5.
Default: ntlm auth = no