Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A5CBB475D70 for ; Fri, 20 Dec 2002 19:05:42 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 3BAC9475CC7 for ; Fri, 20 Dec 2002 19:05:42 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 21CBA43A7B0; Fri, 20 Dec 2002 19:05:42 -0500 (EST) From: Ian Pilcher X-Newsgroups: comp.databases.postgresql.admin Subject: ident authentication not working over loopback adapter Date: Fri, 20 Dec 2002 18:05:35 -0600 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 47 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021208 X-Accept-Language: en-us, en To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/252 X-Sequence-Number: 6747 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 ========================================================================