[英]Java Access Network Domain Shared Folder with username and password
I am trying to access a network path to list directory file names, and I should give domain name, username and password to authenticate.我正在尝试访问网络路径以列出目录文件名,并且我应该提供域名、用户名和密码进行身份验证。
I have tried jcifs library but it's too old and NtlmPasswordAuthentication is deprecated.我已经尝试过 jcifs 库,但它太旧并且 NtlmPasswordAuthentication 已被弃用。 and it still works with smb version 1. and I have to connect to Windows server.
它仍然适用于 smb 版本 1。我必须连接到 Windows 服务器。
I found another library that would support the smb version 2.0 and 3.0.我找到了另一个支持 smb 版本 2.0 和 3.0 的库。 and another solution is to run an ftp server and use ftp protocol instead of smb.
另一种解决方案是运行 ftp 服务器并使用 ftp 协议而不是 smb。
the link below would explain everything about the new library:下面的链接将解释有关新库的所有内容:
Accessing SMB2.1 or SMB3 share from Java? 从 Java 访问 SMB2.1 或 SMB3 共享?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.