简体   繁体   中英

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. and it still works with smb version 1. and I have to connect to Windows server.

I found another library that would support the smb version 2.0 and 3.0. and another solution is to run an ftp server and use ftp protocol instead of smb.

the link below would explain everything about the new library:

Accessing SMB2.1 or SMB3 share from Java?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM