[jcifs] jCIFS and Apple SMBX
Roger Thomas
roger.thomas at stone-ware.com
Thu Sep 3 18:25:13 UTC 2015
We are having trouble getting the jCIFS client to work with the newer SMBX. I have a 10.7.5 test machine where we have been testing. If I turn off SMBX and turn on the SMBUp everything works as expected. I am wonder if we need some client properties set to get it to work. We have been testing with this snippet of code
NtlmPasswordAuthentication ntlm = new NtlmPasswordAuthentication( ntdom, user, pass );
try {
SmbFile f1 = new SmbFile( "smb://@"+host+"/",ntlm );
files = f1.list();
for( int i=0; i< files.length; i++) {
out.println( "<tr><td></td><td>" + files[i] + "</td></tr>");
}
}catch(Exception e){
e.printStackTrace();
}
Yields....
INFO (09/03) 13:39:41 [stderr](Thread qtp1493657028-148): jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
INFO (09/03) 13:39:41 [stderr](Thread qtp1493657028-148): at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:406)
INFO (09/03) 13:39:41 [stderr](Thread qtp1493657028-148): at jcifs.smb.SmbSession.send(SmbSession.java:218)
I can get you the full debug of this code working ( SMBup / Samba ) and with it not working ( SMBX ). I can also get packet traces of the same.
Roger Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20150903/70bbe7b0/attachment.html>
More information about the jCIFS
mailing list