X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4288032B1F7 for ; Sun, 17 Oct 2004 06:05:43 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50600-02 for ; Sun, 17 Oct 2004 05:05:41 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id D1CAB32B1D1 for ; Sun, 17 Oct 2004 06:05:29 +0100 (BST) Received: (qmail 14208 invoked by uid 1112); 17 Oct 2004 05:05:20 -0000 Date: Sun, 17 Oct 2004 00:05:20 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ed Tyrrill Cc: "'pgsql-jdbc@postgresql.org'" Subject: Re: Error connecting when user has no password In-Reply-To: <3250F281630BD6418DCF23E78151979B0ADB83@hermes.avamar.com> Message-ID: References: <3250F281630BD6418DCF23E78151979B0ADB83@hermes.avamar.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/175 X-Sequence-Number: 11280 On Sat, 16 Oct 2004, Ed Tyrrill wrote: > I am in the process of moving our application from postgresql 7.2.1-5 to > 7.3.6-7. I also changed the jdbc driver we use from pg72jdbc2.jar to > pg73jdbc2.jar. I can no longer get a connection for users that have > no password from java. I couldn't figure out why I couldn't get a > connection with our usual user that has no database password, and then > on a hunch tried using a different user that has a password, and > everything worked fine. The no password user can connect using psql > with no problems. > This looks like a difference in your setup of pg_hba.conf. Using psql is not a valid test unless you use the "-h localhost" option to force it to connect over tcpip sockets instead of unix sockets because these have different lines in pg_hba.conf. Kris Jurka