SMB 版本 2 升级问题
Smb version 2 upgrade issues
在 smb 版本升级之前代码在升级到 smb 2 后工作正常,代码抛出异常。我知道我们可以更改 Windows 以接受 smb 1.0,但我不想那样做。我希望我的代码允许 smb 2.0。那么 JCIFS 1.3.15 是否支持 SMB verion 2?如果它不支持什么是最好的替代方案。
jCIFS supports NT LAN Manager 0.12 (NT LM 0.12).
NT LM 0.12 is now called "SMB1", though the accuracy of that
designation could be debated. NT LM 0.12 was introduced with Windows
NT 3.51 and also used in Windows 95. All versions of Windows since
that time have supported (and do support) NT LM 0.12.
Windows/XP and Windows 2003 are the last versions of Windows still
under support that only support SMB1. With Vista, Microsoft
introduced SMB2. Note that SMB2 is a completely different protocol.
Also note that SMB3.0 is actually SMB2.2 and not a new protocol.
With Windows 2012r2 Microsoft introduced the ability to optionally
disable SMB1. Other than that caveat, all supported versions of
Windows still support NT LM 0.12 (SMB1).
综上所述,JCIFS 仅支持 SMB v1。
要使用 SMB v2 或 v3,您可以尝试 smbj
在 smb 版本升级之前代码在升级到 smb 2 后工作正常,代码抛出异常。我知道我们可以更改 Windows 以接受 smb 1.0,但我不想那样做。我希望我的代码允许 smb 2.0。那么 JCIFS 1.3.15 是否支持 SMB verion 2?如果它不支持什么是最好的替代方案。
jCIFS supports NT LAN Manager 0.12 (NT LM 0.12).
NT LM 0.12 is now called "SMB1", though the accuracy of that designation could be debated. NT LM 0.12 was introduced with Windows NT 3.51 and also used in Windows 95. All versions of Windows since that time have supported (and do support) NT LM 0.12.
Windows/XP and Windows 2003 are the last versions of Windows still under support that only support SMB1. With Vista, Microsoft introduced SMB2. Note that SMB2 is a completely different protocol. Also note that SMB3.0 is actually SMB2.2 and not a new protocol.
With Windows 2012r2 Microsoft introduced the ability to optionally disable SMB1. Other than that caveat, all supported versions of Windows still support NT LM 0.12 (SMB1).
综上所述,JCIFS 仅支持 SMB v1。
要使用 SMB v2 或 v3,您可以尝试 smbj