Smb version 2 upgrade issues

情到浓时终转凉″ 提交于 2019-12-11 06:06:41

问题


Before the smb version upgrade the code was working fine after it was upgraded to smb 2 , the code throws exception . I know that we can change in Windows to accept smb 1.0 , but I don't want to do that . I want my code to allow smb 2.0 . So Does JCIFS 1.3.15 support SMB verion 2?If it doesn't support what is the best alternate for that.


回答1:


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).

Source

To sum up JCIFS supports only SMB v1.

To work with SMB v2 or v3 you can try smbj



来源:https://stackoverflow.com/questions/45015298/smb-version-2-upgrade-issues

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!