Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.0
  HXTT Cobol v4.0
  HXTT DBF v7.0
  HXTT Excel v6.0
  HXTT Paradox v7.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT PDF v1.1
  HXTT Text(CSV) v7.0
  HXTT Word v1.0
  HXTT XML v3.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 Lab of Xi'an 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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap