Hi,
i am trying to access paradox tables on a windows share from a linux/ubuntu instance using cifs because i would like to avoid a static mount point.
String url = "jdbc:paradox:smb://user:password@//?delayedClose=0;lockTimeout=-1;charSet=852;CharType=OEM";
gives: "... Logon failure: unknown user name or bad password." during
resultSet = statement.executeQuery(query);.
The query is working well if i mount the share. So i tried to access a text-file directly with jcifs:
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("","user", "password");
SmbFile smbFile = new SmbFile("smb://///",auth);
BufferedReader reader = new BufferedReader(new InputStreamReader(new SmbFileInputStream(smbFile)));
String sCurrentLine;
while ((sCurrentLine = reader.readLine()) != null) {
System.out.println(sCurrentLine);
}
The test-code works perfectly too.
Thank you very much for your help
|
Sorry, once again without brackets:
Hi,
i am trying to access paradox tables on a windows share from a linux/ubuntu instance using cifs because i would like to avoid a static mount point.
String url = "jdbc:paradox:smb://user:password@IP/SHARE/FOLDER?delayedClose=0;lockTimeout=-1;charSet=852;CharType=OEM";
gives: "... Logon failure: unknown user name or bad password." during
resultSet = statement.executeQuery(query);.
The query is working well if i mount the share. So i tried to access a text-file directly with jcifs:
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("","user", "password");
SmbFile smbFile = new SmbFile("smb://IP/SHARE/FOLDER/FILE",auth);
BufferedReader reader = new BufferedReader(new InputStreamReader(new SmbFileInputStream(smbFile)));
String sCurrentLine;
while ((sCurrentLine = reader.readLine()) != null) {
System.out.println(sCurrentLine);
}
The test-code works perfectly too.
Thank you very much for your help
|
2013-10-09 supports NTLM Authentication for SAMBA url or SAMBA absolute path.
|