Re: Problem w/ IDENT authentication

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Ian Pilcher" <i(dot)pilcher(at)comcast(dot)net>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Problem w/ IDENT authentication
Date: 2004-07-26 14:43:07
Message-ID: NEBBLAAHGLEEPCGOBHDGIEHPNGAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


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(at)doxpop(dot)com Phone 1.765.965.7363 Fax 1.765.962.9788
doxpop - Court records at your fingertips - http://www.doxpop.com/

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Yi LIN 2004-07-26 14:53:17 Re: conflict txns in serialization isolation
Previous Message smota 2004-07-26 14:20:40 Charset problem on WHERE clause