Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan 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
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap