From: Kris Jurka <books@ejurka.com>
To: Ed Tyrrill <ed.tyrrill@avamar.com>
Cc: 'pgsql-jdbc@postgresql.org' <pgsql-jdbc@postgresql.org>
Subject: Re: Error connecting when user has no password
Date: Sun, 17 Oct 2004 00:05:20 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0410170003380.14902@leary.csoft.net> (raw)
In-Reply-To: <3250F281630BD6418DCF23E78151979B0ADB83@hermes.avamar.com>
References: <3250F281630BD6418DCF23E78151979B0ADB83@hermes.avamar.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, ed.tyrrill@avamar.com
Subject: Re: Error connecting when user has no password
In-Reply-To: <Pine.BSO.4.56.0410170003380.14902@leary.csoft.net>
References: <3250F281630BD6418DCF23E78151979B0ADB83@hermes.avamar.com> <Pine.BSO.4.56.0410170003380.14902@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox