Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 56333632588 for ; Tue, 27 Apr 2010 21:22:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88428-03 for ; Wed, 28 Apr 2010 00:22:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1255F6325B0 for ; Tue, 27 Apr 2010 21:22:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o3S0MLrc029584; Tue, 27 Apr 2010 20:22:21 -0400 (EDT) To: Andrew Brunette cc: pgsql-jdbc@postgresql.org Subject: Re: Connection problems with jdbc In-reply-to: References: Comments: In-reply-to Andrew Brunette message dated "Tue, 27 Apr 2010 16:38:18 -0700" Date: Tue, 27 Apr 2010 20:22:21 -0400 Message-ID: <29583.1272414141@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.908 tagged_above=-10 required=5 tests=AWL=0.002, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/68 X-Sequence-Number: 20479 Andrew Brunette writes: > When I run this, I get the message, "FATAL: Ident authentication failed for > user "abrunette"". Testing seems to indicate that this message could come > from a variety of sources. Can anyone suggest what I might be doing wrong? The server's pg_hba.conf is set to demand ident authentication, not password authentication, and your client code is not actually running as user abrunette (or at least isn't connecting over a pathway that would allow that to be determined reliably). See http://www.postgresql.org/docs/8.4/static/client-authentication.html for info about reconfiguring to use password authentication. regards, tom lane