Skip site navigation (1) Skip section navigation (2)

Re: ident auth postgres 7.4 fedora core 3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Pilcher <i(dot)pilcher(at)comcast(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: ident auth postgres 7.4 fedora core 3
Date: 2005-03-07 16:32:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Ian Pilcher <i(dot)pilcher(at)comcast(dot)net> 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,
> you actually get a connection to ::ffff:  PostgreSQL doesn't
> know this, however; it asks the ident daemon, "who's connecting from
>"  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

In response to


pgsql-jdbc by date

Next:From: Vadim NasardinovDate: 2005-03-07 16:35:18
Subject: Re: ident auth postgres 7.4 fedora core 3
Previous:From: Sergio LobDate: 2005-03-07 15:42:49
Subject: Re: [BUGS] BUG #1523: precision column value returned from getTypeInfo()

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group