From: Ian Pilcher <pilchman@attbi.com>
To: pgsql-admin@postgresql.org
Subject: ident authentication not working over loopback adapter
Date: Fri, 20 Dec 2002 18:05:35 -0600
Message-ID: <au0b8l$225p$1@news.hub.org> (raw)
This is a bit backwards. ident authentication is working for me over
Unix domain sockets, but it isn't working over the loopback adapter.
Here is my /var/lib/pgsql/data/pg_hba.conf:
# Allow local and loopback users to connect to self-named databases
#
local sameuser ident sameuser
host sameuser 127.0.0.1 255.255.255.255 ident sameuser
# Allow password-based authentication for local users, loopback, and
# local subnet.
#
local all md5
host all 127.0.0.1 255.255.255.255 md5
host all 192.168.1.0 255.255.255.0 md5
I have installed the identd daemon, and 'nmap localhost' confirms that
it is listening on port 113.
Here is an example session. (I have created a PostgreSQL user named
'pilcher' and a database of the same name.)
[pilcher@home pilcher]$ psql
Welcome to psql, 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
pilcher=> \q
[pilcher@home pilcher]$ psql -h localhost
psql: FATAL 1: IDENT authentication failed for user "pilcher"
Anyone have any idea what's going on?
Notes: This is Red Hat Linux 8.0. Password authentication works over
Unix domain sockets or the loopback adapter.
Thanks!
--
========================================================================
Ian Pilcher pilchman@attbi.com
========================================================================
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pilchman@attbi.com
Subject: Re: ident authentication not working over loopback adapter
In-Reply-To: <au0b8l$225p$1@news.hub.org>
References: <au0b8l$225p$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox