From: Nick Fankhauser <nickf@ontko.com>
To: Ian Pilcher <i.pilcher@comcast.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem w/ IDENT authentication
Date: Mon, 26 Jul 2004 09:43:07 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGIEHPNGAA.nickf@ontko.com> (raw)
In-Reply-To: <ce2gqj$8df$1@sea.gmane.org>
Your ph_hba line and connection URL look almost identical to the ones I've
used successfully. The only difference is that I used 255.255.255.0 for the
mask. What you've done is more correct, but you might try the change if
you're down to clutching at straws.
Are there other lines in the pg_hba that might conflict? I believe they are
read top-down and if an earlier line rejects, later ones don't count.
On the other hand, I'm more suspicious that somehow tomcat isn't really
running as user tomcat4, because the psql -h worked using the same pg_hba
setup.
How are you testing the user?
If you haven't already done it, I'd try adding:
System.out.println( System.getProperty("user.name") ) ;
System.out goes to stdout.log in your tomcat log directory, so you shouldn't
need to create a temp file to see the results.
You might also try specifying localhost either by name or address in the
URL. I've seen problems with localhost being undefined before. (It was on
OS/X, but perhaps Red Hat has a similar problem.)
Regards,
-Nick
---------------------------------------------------------------------
Nick Fankhauser
nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788
doxpop - Court records at your fingertips - http://www.doxpop.com/
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: nickf@ontko.com, i.pilcher@comcast.net
Subject: Re: Problem w/ IDENT authentication
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGIEHPNGAA.nickf@ontko.com>
References: <ce2gqj$8df$1@sea.gmane.org> <NEBBLAAHGLEEPCGOBHDGIEHPNGAA.nickf@ontko.com>
* 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