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 20019D1B4C2 for ; Mon, 26 Jul 2004 11:41:44 -0300 (ADT) 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 23759-05 for ; Mon, 26 Jul 2004 14:41:46 +0000 (GMT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by svr1.postgresql.org (Postfix) with ESMTP id 276A4D1B4A2 for ; Mon, 26 Jul 2004 11:41:32 -0300 (ADT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.6) with SMTP id i6QEfcxZ005762; Mon, 26 Jul 2004 09:41:41 -0500 Reply-To: From: "Nick Fankhauser" To: "Ian Pilcher" , Subject: Re: Problem w/ IDENT authentication Date: Mon, 26 Jul 2004 09:43:07 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: Importance: Normal 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: 200407/281 X-Sequence-Number: 10665 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/