Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Text(CSV) v6.0
  HXTT XML v2.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Ltd. of Beijing City (abbr, HXTT)

HXTT Paradox
accessing paradox db on windows share
Andy
2013-10-08 04:22:06.0
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
Re:accessing paradox db on windows share
Andy
2013-10-08 04:27:15.0
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
Re:Re:accessing paradox db on windows share
HXTT Support
2013-10-09 07:06:23.0
2013-10-09 supports NTLM Authentication for SAMBA url or SAMBA absolute path.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap