[jcifs] jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.

sin5k5 sin5k4 at gmail.com
Mon Jul 9 00:33:39 MDT 2012


Hey all,planning to read a file over a Windows from Ubuntu in Java using
jcifs.Tried a simple approach using:

String user = "mydomain;myuser:mypassword";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user);
SmbFile remotefile = new SmbFile("smb://myserver/myfolder/myfile.jar",auth);


Using this approach,and knowing that the server works and the login values
are correct,all i get is a logon failure,what could be the problem here?



--
View this message in context: http://samba.2283325.n4.nabble.com/jcifs-smb-SmbAuthException-Logon-failure-unknown-user-name-or-bad-password-tp4634285.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.


More information about the jCIFS mailing list