cannot get DBI:ODBC connection to mssql instance that requires ssl
- From: detertj@xxxxxxxx
- Date: 12 Dec 2006 13:36:09 -0800
I am trying to connect to a MsSQL server instance that requires ssl (it
has the 'force protocol encryption' check-box checked), but have not
been able to.
The sofware involved is:
- the server is mssql server 2000
- the code to connect is running on a linux box with:
perl v5.8.8
DBI v1.51
DBD::ODBC v1.13
freetds v0.64 odbc driver (and freetds was compiled with ssl support
enabled)
There are 2 instances of the MsSQL server, one listening on port 1433,
and not requiring ssl, and one listening on port 2943, requiring ssl.
I can connect to the former, but not the latter.
My /etc/odbc.ini looks like:
[ODBC Data Sources]
JBAR = Mssql Jenzabar Server
[JBAR]
Driver = /usr/local/lib/libtdsodbc.so
Description = Mssql Jenzabar Server
Trace = No
Server = bla.msoe.edu
Port = 1433
Database = TMSEPRD
TDS_Version = 7.0
[JBARS8]
Driver = /usr/local/lib/libtdsodbc.so
Description = Mssql Jenzabar Server
Trace = No
Server = bla.msoe.edu
Port = 2943
Database = TMSEPRD
TDS_Version = 8.0
The error message I get when trying to connect to jbars8 is:
DBI connect('jbars8','loginman',...) failed: [unixODBC][FreeTDS][SQL
Server]Login failed for user 'loginman'. (SQL-42000)
[unixODBC][FreeTDS][SQL Server]Login incorrect. (SQL-28000)
[unixODBC][FreeTDS][SQL Server]Unable to connect to data source
(SQL-08001)(DBD: db_login/SQLConnect err=-1) at ./dbdodbcTest line 6
Failed to connect to db dsn=jbars8 : [unixODBC][FreeTDS][SQL
Server]Login failed for user 'loginman'. (SQL-42000)
[unixODBC][FreeTDS][SQL Server]Login incorrect. (SQL-28000)
[unixODBC][FreeTDS][SQL Server]Unable to connect to data source
(SQL-08001)(DBD: db_login/SQLConnect err=-1)
By packet sniffing, I can see that packets are going to the server on
the desired port, and coming back from the server, so I know that the
code is finding the correct db instance. Also, the tsql binary, that
comes with freetds, is able to connect to the jbars8 instance, so i
know that the db instance is working properly.
Thanks for any help you lend
.
- Prev by Date: DBD::Oracle 1.19 failing to make
- Next by Date: Re: DBD::Oracle 1.19 failing to make
- Previous by thread: DBD::Oracle 1.19 failing to make
- Next by thread: Error installing DBD::Sybase RPM
- Index(es):
Relevant Pages
|
|