Roger Thomas
2015-09-03 18:25:13 UTC
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
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