Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C67FA6322FD for ; Mon, 30 Nov 2009 11:20:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 59035-03 for ; Mon, 30 Nov 2009 15:19:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web112013.mail.gq1.yahoo.com (web112013.mail.gq1.yahoo.com [67.195.22.80]) by mail.postgresql.org (Postfix) with SMTP id 6A9EE63237F for ; Mon, 30 Nov 2009 11:19:51 -0400 (AST) Received: (qmail 42359 invoked by uid 60001); 30 Nov 2009 15:19:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259594389; bh=RBPtQoKaKADeG7OCMXCks/ceObagyFqJ/qEBb/0jnfk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=AHPdQQcBMSUS3RUQ6S8Oq3wVOraIy+GfMtmVkux61cCcBEwGXJJIS+PXJNrCUU4/qW0wZJh8j2mBwmJhYgn5Zf5kxOpXaKPkf63evYaRVXwaPkygYJlAllN/Qsh+Lb2Q5Wd/IFl1kSfL1hLtFNQImNXyVm9AnilX7+JK+F6oXws= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=tdbrTXbV2WfHHZqecTpdsAymrppBVXtjk8KuJ944zIppPKbI828srtg6300jJ1NUyzKqPyF/DhAeZQRWJsWFZEhgGLVrKS8ecNfEupkexhse265K265NekPg5jkT3Y+MdZdobjYzCMM6oEZez8zh5MLJN9Q9No3v7nr0KocmQUQ=; Message-ID: <61071.41986.qm@web112013.mail.gq1.yahoo.com> X-YMail-OSG: Wh7FEmIVM1m.Eyn6iZjX3L.XKSgYOKcM371zJHqWiCGyJZ9nvx5K9YDigeyp7byl8BRMEVBQHnYWHzLApN0kvBN9JlzYY_7M6bNfj4gcYhXGoR0iviBQPLDH185jXht0JqfQAnVykj_9qve5rT0MwtcsajrEfN_ZmVhIBfWq2lVg7M2hxYMx2qoCLgooSzLgAPaDRK2IOASMKRgHi9o0TqYmekU63WpqlXYX_Lpv__gk6uK26KelOk1U.na_Am9ccPhfuuPUluHXN3bNnHE20RfWMfwEnhMk5WlORDM6l5p3pndEMFO2w0JXf1ExILMoTn02wlynQR.vnEMbr2bHmixNcInFgQaKnc82W5vXCGxFWdsbaVE6PMv9dGStmSbqn4I3PGnor1h61JbiDaXEJEQ- Received: from [131.180.98.23] by web112013.mail.gq1.yahoo.com via HTTP; Mon, 30 Nov 2009 07:19:48 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.8.100.260964 References: <174325.97827.qm@web112010.mail.gq1.yahoo.com> <4B0EA0E8.30001@tpf.co.jp> Date: Mon, 30 Nov 2009 07:19:48 -0800 (PST) From: Chris Davis Subject: Re: md5 authentication issues with psqlODBC driver for Windows To: Hiroshi Inoue Cc: pgsql-odbc@postgresql.org In-Reply-To: <4B0EA0E8.30001@tpf.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/9 X-Sequence-Number: 10136 The first section is the output from SPSS which is trying to access the database. The next three entries are from the log files. Thanks, Chris GET DATA /TYPE=ODBC /CONNECT='DSN=PostgreSQL30;DATABASE=my_database;SERVER=my.server.name;PORT=5432;UID=dbuser;PWD=/_/%;c-R,K>d;m+#5q;C"/" j>C5E;}=K*{Warning. Command name: GET DATA >SQLDriverConnect failed :FATAL: password authentication failed for user "dbuser" CACHE. EXECUTE. >Error # 105. Command name: EXECUTE >This command is not valid before a working file has been defined. >This command not executed. DATASET NAME DataSet1 WINDOW=FRONT. [860-0.031]enter CC_Destructor, self=00A83AC0 [860-0.047]in CC_Cleanup, self=00A83AC0 [860-0.047]after CC_abort [860-0.047]SOCK_Destructor [860-0.047]after SOCK destructor [860-0.047]exit CC_Cleanup [860-0.047]after CC_Cleanup [860-0.047]after free statement holders [860-0.047]exit CC_Destructor [860-0.047]in EN_Destructor, self=00A82138 [860-0.047]clearing conns count=128 [860-0.047]exit EN_Destructor: rv = 1 [860-15.781]DETACHING PROCESS [1620-0.000]globals.extra_systable_prefixes = 'dd_;' [1620-0.000]exe name=spss plaformId=2 [1620-0.000][[SQLAllocHandle]][1620-0.000]**** in PGAPI_AllocEnv ** [1620-0.016]** exit PGAPI_AllocEnv: phenv = 28A23CB0 ** [1620-0.016][[SQLSetEnvAttr]] att=200,2 [1620-0.016][[SQLAllocHandle]][1620-0.016]PGAPI_AllocConnect: entering... [1620-0.016]**** PGAPI_AllocConnect: henv = 28A23CB0, conn = 28A23CE0 [1620-0.016]EN_add_connection: self = 28A23CB0, conn = 28A23CE0 [1620-0.016] added at 0, conn->henv = 28A23CB0, conns[0]->henv = 28A23CB0 [1620-0.016][SQLGetInfo(30)][1620-0.031]PGAPI_GetInfo: entering...fInfoType=77 [1620-0.031]PGAPI_GetInfo: p='03.50', len=0, value=0, cbMax=12 [1620-0.031][SQLDriverConnect][1620-0.031]PGAPI_DriverConnect: entering... [1620-0.031]**** PGAPI_DriverConnect: fDriverCompletion=0, connStrIn='DSN=PostgreSQL30;' [1620-0.031]our_connect_string = 'DSN=PostgreSQL30;' [1620-0.047]attribute = 'DSN', value = 'PostgreSQL30' [1620-0.047]copyAttributes: DSN='PostgreSQL30',server='',dbase='',user='',passwd='xxxxx',port='',onlyread='',protocol='',conn_settings='',disallow_premature=-1) [1620-0.047]getDSNinfo: DSN=PostgreSQL30 overwrite=0 [1620-0.047]force_abbrev=0 bde=0 cvt_null_date=0 [1620-0.047]globals.extra_systable_prefixes = 'dd_;' [1620-0.062]our_connect_string = 'DSN=PostgreSQL30;' [1620-0.062]attribute = 'DSN', value = 'PostgreSQL30' [1620-0.062]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_; [0.031]conn=28A23CE0, PGAPI_DriverConnect( in)='DSN=PostgreSQL30;', fDriverCompletion=0 [0.047]DSN info: DSN='PostgreSQL30',server='my.server.name',port='5432',dbase='my_database',user='dbuser',passwd='xxxxx' [0.062] onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0' [0.062] conn_settings='', conn_encoding='(null)' [0.062] translation_dll='',translation_option='' ----- Original Message ---- From: Hiroshi Inoue To: Chris Davis Cc: pgsql-odbc@postgresql.org Sent: Thu, November 26, 2009 4:38:16 PM Subject: Re: [ODBC] md5 authentication issues with psqlODBC driver for Windows Chris Davis wrote: > I've been running into an issue where I get an error "password authentication failed" while using the psql ODBC driver for Windows, with the database residing on a Linux machine. > I know my current setup is (relatively) correct since: > 1) I've previously used a JDBC driver with postgres and md5 authentication, with no problems (with Linux on both client and server) > 2) In Windows I can look at the ODBC sources and always verify that I can connect to the database > 3) I'm able to fix the problem by using trust instead of md5 authentication > > Basically, I'm using the driver to connect the statistics program SPSS to a database. I can always connect to the database and see the tables, but the problem occurs when I try to make a query. The first time might work and actually return results, but after that, I consistently get the "password authentication failed" error. Could you send me the Mylog output of the error ? regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc