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 A43A2564BB for ; Mon, 7 Mar 2005 16:32:51 +0000 (GMT) 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 20419-09 for ; Mon, 7 Mar 2005 16:32:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7FD4D563F2 for ; Mon, 7 Mar 2005 16:32:49 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j27GWmpa002492; Mon, 7 Mar 2005 11:32:48 -0500 (EST) To: Ian Pilcher Cc: pgsql-jdbc@postgresql.org Subject: Re: ident auth postgres 7.4 fedora core 3 In-reply-to: References: <20050307062838.11055.qmail@web30307.mail.mud.yahoo.com> Comments: In-reply-to Ian Pilcher message dated "Mon, 07 Mar 2005 09:33:03 -0600" Date: Mon, 07 Mar 2005 11:32:47 -0500 Message-ID: <2491.1110213167@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/43 X-Sequence-Number: 12436 Ian Pilcher writes: > Since 1.4.2 (I believe), Java uses IPv6 by default. When a connection > is made to an IPv4 address, it actually makes an IPv6 connection to an > "IPv4-mapped address". So when you request a connection to 127.0.0.1, > you actually get a connection to ::ffff:127.0.0.1. PostgreSQL doesn't > know this, however; it asks the ident daemon, "who's connecting from > 127.0.0.1?" The daemon answers "nobody". Hmm. I think you have mischaracterized the situation, because the IDENT protocol doesn't actually mention IP addresses at all --- just port numbers. It's up to Postgres to connect back to the same IP address that the connection came from, and AFAIK we do that correctly for IPv6 addresses. This report could indicate a bug in our handling of the case, or it could indicate a configuration error on the part of the OP, or it could be that his ident daemon isn't handling the case correctly. There's not enough info to tell. It would be useful to see the postmaster log output when the connection is rejected. regards, tom lane