gpt4 book ai didi

java - Smb版本2升级问题

转载 作者:行者123 更新时间:2023-11-30 06:37:11 28 4
gpt4 key购买 nike

在smb版本升级之前,代码工作正常,升级到smb 2后,代码抛出异常。我知道我们可以在 Windows 中进行更改以接受 smb 1.0,但我不想这样做。我希望我的代码允许 smb 2.0 。那么 JCIFS 1.3.15 支持 SMB 版本 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).

Source

综上所述,JCIFS 仅支持 SMB v1。

要使用 SMB v2 或 v3,您可以尝试 smbj

关于java - Smb版本2升级问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45015298/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com