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 1EA77D1B51D for ; Mon, 26 Jul 2004 06:00:31 -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 51351-04 for ; Mon, 26 Jul 2004 09:00:31 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 9DDD8D1B379 for ; Mon, 26 Jul 2004 06:00:19 -0300 (ADT) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bp1LL-0003zd-00 for ; Mon, 26 Jul 2004 11:00:23 +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 11:00:23 +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 11:00:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Ian Pilcher Subject: Problem w/ IDENT authentication Date: Mon, 26 Jul 2004 03:53:38 -0500 Lines: 39 Message-ID: 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 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/276 X-Sequence-Number: 10660 I am trying to set up IDENT authentication for Tomcat 5 on my Fedora Core 2 system. I've added the appropriate line to pg_hba.conf: host tomcat4 tomcat4 127.0.0.1 255.255.255.255 ident sameuser This works as expected from a console: [root@home webapps]# su tomcat4 sh-2.05b$ psql -h localhost tomcat4 Welcome to psql 7.4.2, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit tomcat4=> In my servlet I try to get a connection: db = DriverManager.getConnection("jdbc:postgresql:tomcat4", "tomcat4", ""); And I get the following: org.postgresql.util.PSQLException: A connection error has occurred: org.postgresql.util.PSQLException: FATAL: IDENT authentication failed for user "tomcat4" I've verified that the servlet does run as tomcat4 by writing a temporary file. TIA for any ideas! -- ======================================================================== Ian Pilcher i.pilcher@comcast.net ========================================================================