Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8BFA99FB6AC for ; Tue, 5 Jun 2007 17:42:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 08019-06-3 for ; Tue, 5 Jun 2007 17:42:19 -0300 (ADT) X-Greylist: delayed 00:31:35.454828 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8CD489FBDCB for ; Tue, 5 Jun 2007 17:42:14 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from smtp1.NoDak.edu (smtp1.NoDak.edu [134.129.111.50]) by svr4.postgresql.org (Postfix) with ESMTP id A789A5AF034 for ; Tue, 5 Jun 2007 20:10:38 +0000 (GMT) Received: from chicadee.cc.ndsu.nodak.edu (chicadee.cc.ndsu.NoDak.edu [134.129.106.144]) (authenticated bits=0) by smtp1.NoDak.edu (8.13.1/8.13.1) with ESMTP id l55KATBY029136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 5 Jun 2007 15:10:29 -0500 Date: Tue, 5 Jun 2007 15:10:29 -0500 From: "Eric J. Christeson" To: pgsql-odbc@postgresql.org Subject: Problems connecting via ODBC Message-ID: <20070605201029.GE18143@chicadee.cc.ndsu.nodak.edu> Reply-To: "Eric J. Christeson" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/18 X-Sequence-Number: 9007 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 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