Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XllRw-0006ex-E9 for pgsql-odbc@arkaria.postgresql.org; Tue, 04 Nov 2014 21:15:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XllRv-0001Qz-Ql for pgsql-odbc@arkaria.postgresql.org; Tue, 04 Nov 2014 21:15:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XllRu-0001O1-4W for pgsql-odbc@postgresql.org; Tue, 04 Nov 2014 21:15:34 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XllRp-0000jd-M5 for pgsql-odbc@postgresql.org; Tue, 04 Nov 2014 21:15:32 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 0B986208D1 for ; Tue, 4 Nov 2014 16:15:28 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 04 Nov 2014 16:15:28 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=CsIBZZ3HC23fQyjHVsmTD2oJlu0=; b=gzTMsIKhAQhgmbtiA4 NH4sE18JeB1syvriztm5n8ZCl7ZB/9mLkhqfSiMtXLytpeBABxf8GcvnBDsXLGVt HT9oPw6O1lR/WzyeNkwXJcn5A3joGElHG3ECK2IMyUYbTS/KQ+BWdCSvjy7KCam2 RTndbb43P1hymmfQHUsws8egg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=CsIBZZ3HC23fQyjHVsmTD2 oJlu0=; b=lFgAsoLVZlOcbkyB8QxuIp+CqAHBcIf+GXWfPHoeqsMx6ffFWiKFam mthYWSxhXpHORJPIsTxWkj6bhdtGk5OgUmw1Q4D19kaNjKqTYS4aGihD5BpmUhcH C3ybjtEJL1/G6qCOY30qnabXjAmLpn3UnEEUN6DKEc+rBX9uZyfXc= X-Sasl-enc: B3wSAXVjZcmKxOpO90ZJVpgmK2O7qsLvGbKejuc3Av54 1415135727 Received: from [192.168.1.2] (unknown [174.21.140.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 795FFC00011; Tue, 4 Nov 2014 16:15:27 -0500 (EST) Message-ID: <545941EE.9020704@aklaver.com> Date: Tue, 04 Nov 2014 13:15:26 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: malcolm.macleod@tshwanedje.com, "pgsql-odbc@postgresql.org" Subject: Re: Does psqlODBC actually work on osx? References: <1415116470.3086.9.camel@watchmen.homenetwork> <5458F843.9010009@aklaver.com> <1415118182.3086.11.camel@watchmen.homenetwork> <5459031B.6010805@aklaver.com> <1415124935.3086.13.camel@watchmen.homenetwork> In-Reply-To: <1415124935.3086.13.camel@watchmen.homenetwork> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 11/04/2014 10:15 AM, Malcolm MacLeod wrote: >>>>> We have a client trying to connect to PostgreSQL server 9.2 from an osx >>>>> client with our software via ODBC, he has asked for instructions to >>>>> assist him setting up. >>>>> >>>>> I have attempted the setup myself using psqlODBC and no matter what I do >>>>> configuration wise, the driver fails to connect (via iodbctestw and >>>>> iodbc administrator) stating that the password is incorrect - I know >>>>> this is not the case because I am using identical configuration to my >>>>> linux machine where it works fine. >>>> What is the exact error message you are getting? >>>> Are you connecting from within the same network as your Linux machine? >>>> Just trying to eliminate the possibility that it is a pg_hba.conf issue. >>> All on same internal network. >>> Server 10.0.0.3, working machine(s) 10.0.0.24, 10.0.0.25 etc. broken >>> machine 10.0.0.26 >>> I've tried also setting the pg_hba.conf to 'trust' and even then it >>> doesn't seem to work. >>> >>> Various config info and traces below. >>> >>> >>> >>> Snippet from configuration (Although I've played with various other >>> options SSLmode etc. here as well) >>> >>> [test] >>> Driver=psqlODBC >>> Server=10.0.0.3 >>> Database=todo >>> Username=postgres >>> Password=postgres13 >>> >>> >>> >>> >>> iodbctestw error messsage: >>> 1: SQLDriverConnectW = FATAL: password authentication failed for user >>> "postgres" (210) SQLSTATE=28P01 >> Well it is not liking that password. > I can connect using the exact same password from the exact same machine > using pgadmin directly, as well as from multiple (non osx) machines > using it also. > Occams razor tells me that it is far more likely that psqlodbcw.so has > some or other issue than that the password somehow has something wrong > with it or that I am suddenly incapable of doing basic configurations > correctly. I would love to be wrong and find out that it is a > configuration issue as that would solve a lot of headaches but I just > don't see where or how it could be possible. I do not use iodbc, so the following may be answered some where else that I have not found. What has me confused is that you have: [test] Driver=psqlODBC Server=10.0.0.3 Database=todo Username=postgres Password=postgres13 but this: http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/FAQ says: " The Driver= parameter should be a full name to a shared-library implementing the driver for the backend database to which you're connecting Note that other driver-managers permit use of { } for quotations and symbolic names for the driver (referencing the odbcinst.ini file), such as Driver = {SQL Server} Currently iODBC implements neither of these; the Driver= parameter must be a full path to the shared library directly. " > > >> How are you running the test configuration? > iodbctestw "DSN=test;UID=postgres;PWD=postgres13" and various similar > incantations e.g. with the user and password left out... > Also the test button in iODBC administrator > > >> Looking into the postmaster log to see what it logged about this might >> prove informative. It's not unusual for the log to contain info >> that's >> intentionally not reported to the client. > 2014-11-04 18:26:07 CAT FATAL password authentication failed for user > "postgres" > 2014-11-04 18:26:07 CAT DETAIL Connection matched pg_hba.conf line 81: > "host all all 10.0.0.0/24 md5" > > Thats all of interest that postmaster has to say. > i.e. the password is wrong, except of course this is obviously not the > case. I doubt the server is lying about this, so I'm pretty sure that > the blame lies with psqlODBC (or with libiodbc and/or the interface > between the two). > Could it be incorrectly passing the UTF32 (or is it 16?) password to a > UTF8 system/iodbc call or similar thereby corrupting the password? > I find it hard to believe that something this fundamental could be > wrong/broken but I don't know what else to think - which is why I ask if > anyone can verify having actually ever used psqlODBCw on osx recently > without issue... Just for grins you might want to try the straight iodbctest. > > Thanks, > Malcolm MacLeod > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc