I have tried Ntlm but it dint work so I tried smb
SMBClient client1 = new SMBClient(SmbConfig.createDefaultConfig());
Connection c = client1.connect("myhost");
Session s = c.authenticate(new AuthenticationContext("myuser",
"test".toCharArray(), ""));
DiskShare share = (DiskShare) s.connectShare("smb");
but this is throwing error that
com.hierynomus.mssmb2.SMBApiException: STATUS_LOGON_FAILURE (0xc000006d): Authentication
failed for 'myuser' using com.hierynomus.smbj.auth.NtlmAuthenticator@5d9be807
com.hierynomus.protocol.transport.TransportException: java.net.SocketException:
Connection reset