jcifs

Alternatives for JCIFS NTLM library

走远了吗. 提交于 2019-11-30 04:51:34
Are there any alternatives for JCIFS NTLM library? Waffle - https://github.com/dblock/waffle Has filters, authenticators, supports spring-security, etc. Windows-only, but doesn't require native DLLs. To be honest, you should not look for one. For your SSO needs you should use proper kerberos / SPNEGO instead of the legacy NTLM. For that stuff you need no special libraries as JVMs are already enabled for doing that automatically. All you have to do is to configure your application and JVM security policies properly. The official documentation from Sun should give you all the details you need,

Android SDK : Samba server streaming video to Android using VideoView?

ぐ巨炮叔叔 提交于 2019-11-29 09:01:28
I need play video from samba to android device streaming. I've been look for this question and someone say that : Using JCIFS to scan for and "see" the share: http://jcifs.samba.org/ Implementing a simple HTTP server (NanoHttpd) to stream the content via http: https://github.com/NanoHttpd/nanohttpd Passing the http://localhost/myvideo link to the VideoView I'm already use JCIFS to get SmbFile in my project and I also get inputstream( smbfile.getInputStream() ). Now I import NanoHttpd and I create simple HTTP server that http address is http://localhost:8080 private class MyHTTPD extends

Alternatives for JCIFS NTLM library

微笑、不失礼 提交于 2019-11-29 02:52:34
问题 Are there any alternatives for JCIFS NTLM library? 回答1: Waffle - https://github.com/dblock/waffle Has filters, authenticators, supports spring-security, etc. Windows-only, but doesn't require native DLLs. 回答2: To be honest, you should not look for one. For your SSO needs you should use proper kerberos / SPNEGO instead of the legacy NTLM. For that stuff you need no special libraries as JVMs are already enabled for doing that automatically. All you have to do is to configure your application

Android SDK : Samba server streaming video to Android using VideoView?

落爺英雄遲暮 提交于 2019-11-28 02:19:33
问题 I need play video from samba to android device streaming. I've been look for this question and someone say that : Using JCIFS to scan for and "see" the share: http://jcifs.samba.org/ Implementing a simple HTTP server (NanoHttpd) to stream the content via http: https://github.com/NanoHttpd/nanohttpd Passing the http://localhost/myvideo link to the VideoView I'm already use JCIFS to get SmbFile in my project and I also get inputstream( smbfile.getInputStream() ). Now I import NanoHttpd and I

How to copy file from smb share to local drive using jcifs in Java?

强颜欢笑 提交于 2019-11-28 01:14:00
Could anybody help me to copy file from shared folder to local drive? My code is: import jcifs.smb.NtlmPasswordAuthentication; import jcifs.smb.SmbFile; import jcifs.smb.SmbFileInputStream; import jcifs.smb.SmbFileOutputStream;; public class smb { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub String urlToBackUpFile = "smb://ip/backup$/test.txt"; System.out.println("smb folder of source file" + urlToBackUpFile); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null, "login", "pass");

How to access share folder in windows through android and read files

。_饼干妹妹 提交于 2019-11-28 00:30:24
I need to connect from my Android phone to a Windows PC share and access files. I saw some sample apps in Android market that access share folders using smb/samba. But I have no idea about how to create an app like that. Thanks a lot. tantonj You need to get JCIFS and use SmbFile class to interact with files over the network, http://lists.samba.org/archive/jcifs/2007-September/007465.html that is a quick example of how to list files, of coarse you need internet permission on. So Far though everytime I try to call SmbFile.listFiles(); I get an UnknownHostException, However others seam to be

JCIFS: file retrieval is too slow to be usable

亡梦爱人 提交于 2019-11-27 20:15:05
I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable. import jcifs.smb.*; class First { public static void main(String[] args) throws Exception { try { //jcifs.Config.setProperty( "jcifs.netbios.wins", "192.168.1.220" ); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("domain.com", "Administrator", "password"); SmbFile f = new SmbFile("smb://10.17.15.12/Share/xml/file.xml", auth); SmbFileInputStream in = new SmbFileInputStream(f); byte[] b = new byte[8192]; int n; while(( n = in.read( b )) > 0 ) { System.out.write( b,

Android ServerSocket programming with jCIFS streaming files

ⅰ亾dé卋堺 提交于 2019-11-27 06:50:50
I've got a bit of an issue and I've been asking regarding it quite a few times, but I think I'm one step closer now, so hopefully someone can help me with the rest. My previous questions: Connect to NAS device from Android How to open files in Android with default viewer using jCIFS Put simply - I want to create an application that: Can connect to a NAS device using jCIFS Is capable of launching files in the default viewer - i.e. a video in the video player The first part is relatively easy and I've already done that, but the second part is what's troubling me and what I've asked about a few

How to access share folder in windows through android and read files

谁说我不能喝 提交于 2019-11-26 23:19:20
问题 I need to connect from my Android phone to a Windows PC share and access files. I saw some sample apps in Android market that access share folders using smb/samba. But I have no idea about how to create an app like that. Thanks a lot. 回答1: You need to get JCIFS and use SmbFile class to interact with files over the network, http://lists.samba.org/archive/jcifs/2007-September/007465.html that is a quick example of how to list files, of coarse you need internet permission on. So Far though

connecting to shared folder in windows with java

二次信任 提交于 2019-11-26 22:11:30
I need to connect to a shared folder on a remote windows machine through java , where i put my domain authentication (username and password ) in the code , here is my code File file = new File("\\\\theRemoteIP\\webapps"); File[] files = file.listFiles(); System.out.println("acssed done"); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); System.out.println(name); } Thanks You should use SmbFile and NtlmPasswordAuthentication from JCIFS . Here is a simple piece of code to show you how to do : String url = "smb://yourhost/yourpath/"; NtlmPasswordAuthentication auth = new