pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric J. Christeson <Eric.Christeson@ndsu.edu>
To: pgsql-odbc@postgresql.org
Subject: Problems connecting via ODBC
Date: Tue, 5 Jun 2007 15:10:29 -0500
Message-ID: <20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu> (raw)

I'm using libiodbc-3.52.5 and psqlodbc-08.02.0400 to connect to a server
running PostgreSQL 8.1.5.  When I run the iodbctest with the DSN I have
set up, I get:

1: SQLDriverConnect = The database does not exist on the server
or user authentication failed. (105) SQLSTATE=HY000

The database does exist and I'm able to connect fine via psql.  

I have logging turned on in Postgres and the connection is allowed vs.
when I supply an incorrect password and the connection is denied.

Relevent files follow.

;
;  odbc.ini
;
[ODBC Data Sources]
pg_ldap=PostgreSQL

[pg_ldap]
Driver=PostgreSQL
Description=Connection to LDAP/POSTGRESQL
Servername=dummyserver.net
Port=5432
Protocol=6.4
UserName=test
Password=test
Database=pg_ldap
ReadOnly=no

[ODBC]
InstallDir=/usr/local/lib

;
;  odbcinst.ini
;
[PostgreSQL]
Description=ODBC for PostgreSQL
Driver=/usr/local/lib/psqlodbcw.so

[ODBC]
Trace=1
Debug=1
Pooling=No

PostgreSQL log:

DEBUG:  forked new backend, pid=89606 socket=7
LOG:  connection received: host=dummyserver.net port=56614
DEBUG:  received password packet
LOG:  connection authorized: user=test database=pg_ldap
DEBUG:  postmaster child[89606]: starting with (
DEBUG:          postgres
DEBUG:          -v131072
DEBUG:          -p
DEBUG:          pg_ldap
DEBUG:  )
DEBUG:  InitPostgres
DEBUG:  StartTransaction
DEBUG:  name: unnamed; blockState:       DEFAULT; state: INPROGR,
xid/subid/cid: 115384/1/0, nestlvl: 1, children: <>
DEBUG:  CommitTransaction
DEBUG:  name: unnamed; blockState:       STARTED; state: INPROGR,
xid/subid/cid: 115384/1/0, nestlvl: 1, children: <>
DEBUG:  StartTransactionCommand
STATEMENT:   
DEBUG:  StartTransaction
STATEMENT:   
DEBUG:  name: unnamed; blockState:       DEFAULT; state: INPROGR,
xid/subid/cid: 115385/1/0, nestlvl: 1, children: <>
STATEMENT:   
LOG:  statement:  
STATEMENT:   
DEBUG:  CommitTransactionCommand
STATEMENT:   
DEBUG:  CommitTransaction
STATEMENT:   
DEBUG:  name: unnamed; blockState:       STARTED; state: INPROGR,
xid/subid/cid: 115385/1/0, nestlvl: 1, children: <>
STATEMENT:   
LOG:  duration: 1.117 ms  statement:  
STATEMENT:   
DEBUG:  proc_exit(0)
DEBUG:  shmem_exit(0)
LOG:  disconnection: session time: 0:00:00.00 user=test database=pg_ldap
host=dummyserver.net port=56614
DEBUG:  exit(0)
DEBUG:  reaping dead processes
DEBUG:  server process (PID 89606) exited with exit code 0


Any ideas?

Thanks,
Eric

-- 
Eric J. Christeson                      <Eric.Christeson@ndsu.edu>
Information Technology Services         (701) 231-8693 (Voice)
Room 242C, IACC Building              
North Dakota State University, Fargo, ND 58105-5164

PHP is a minor evil perpetrated and created by incompetent amateurs,
whereas Perl is a great and insidious evil, perpetrated by skilled
but perverted professionals. - Jon Ribbens




Message-ID: <20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu>
Permalink:  ../20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu/
Also on:    postgresql.org/message-id/20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Eric.Christeson@ndsu.edu
  Subject: Re: Problems connecting via ODBC
  In-Reply-To: <20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu>
  References: <20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox