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 E3529D1B209 for ; Mon, 26 Jul 2004 15:23:56 -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 37038-04 for ; Mon, 26 Jul 2004 18:23:52 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 9304BD1B26C for ; Mon, 26 Jul 2004 15:23:49 -0300 (ADT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpA8c-0002RM-00 for ; Mon, 26 Jul 2004 20:23:50 +0200 Received: from c-24-0-240-136.client.comcast.net ([24.0.240.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2004 20:23:50 +0200 Received: from i.pilcher by c-24-0-240-136.client.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2004 20:23:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Ian Pilcher Subject: Re: Problem w/ IDENT authentication Date: Mon, 26 Jul 2004 13:23:46 -0500 Lines: 38 Message-ID: References: <27763.1090855079@sss.pgh.pa.us> <29756.1090863711@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-0-240-136.client.comcast.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510 X-Accept-Language: en-us, en In-Reply-To: <29756.1090863711@sss.pgh.pa.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/296 X-Sequence-Number: 10680 Tom Lane wrote: > > Sometimes life's like that ;-). But actually this does tell something: > the lack of any additional log message implies that we did get a > response from the ident server, since ident_inet() will bleat about > connection failures and so forth. What I conclude is that ident is not > reporting tomcat4 as the owner of the tomcat process, but something > else. Perhaps root? How is the tomcat stuff getting launched, anyway? > I've recreated this problem with a very simple standalone Java program: import java.sql.*; import java.io.*; public class JdbcTest { public static void main(String[] args) throws Exception { Class.forName("org.postgresql.Driver"); Connection db = DriverManager.getConnection(args[0], args[1], args[2]); db.close(); } } When I run it as tomcat4 I get the same IDENT authentication failure, so it doesn't appear to be a Tomcat issue. Turning on pidentd logging, it appears that it simply doesn't work for Java processes. Insert expletive here! Thanks for your help! -- ======================================================================== Ian Pilcher i.pilcher@comcast.net ========================================================================