pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Brunette <brunette.andrew@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connection problems with jdbc
Date: Tue, 27 Apr 2010 20:22:21 -0400
Message-ID: <29583.1272414141@sss.pgh.pa.us> (raw)
In-Reply-To: <h2s326b1ea31004271638k8fa38c3cp9a8db7af4f28c69f@mail.gmail.com>
References: <h2s326b1ea31004271638k8fa38c3cp9a8db7af4f28c69f@mail.gmail.com>

Andrew Brunette <brunette.andrew@gmail.com> 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



view thread (2+ messages)

Message-ID: <29583.1272414141@sss.pgh.pa.us>
Permalink:  ../29583.1272414141@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29583.1272414141@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, brunette.andrew@gmail.com
  Subject: Re: Connection problems with jdbc
  In-Reply-To: <29583.1272414141@sss.pgh.pa.us>
  References: <h2s326b1ea31004271638k8fa38c3cp9a8db7af4f28c69f@mail.gmail.com> <29583.1272414141@sss.pgh.pa.us>

* 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