Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 103EE47630A for ; Tue, 28 Jan 2003 08:46:10 -0500 (EST) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 461514762DA for ; Tue, 28 Jan 2003 08:46:09 -0500 (EST) Received: (qmail 13848 invoked by uid 500); 28 Jan 2003 13:58:57 -0000 Date: Tue, 28 Jan 2003 07:58:57 -0600 From: Bruno Wolff III To: Jerry Asher Cc: pgsql-admin@postgresql.org Subject: Re: restricting identd to just the loopback adapter. Message-ID: <20030128135857.GA13823@wolff.to> Mail-Followup-To: Jerry Asher , pgsql-admin@postgresql.org References: <836fa09a.0301262148.6fdfa17f@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <836fa09a.0301262148.6fdfa17f@posting.google.com> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/306 X-Sequence-Number: 7148 On Sun, Jan 26, 2003 at 21:48:33 -0800, Jerry Asher wrote: > I have installed running pg 7.2, and it apparently would like to have > an identd server to help it establish who is who. First off, are the users logging into the same machine that the database server is running on? If so, than you don't need to run an ident server, you can use domain sockets for connections and the getpeeruid function will be used to do ident authentication. > I installed pidentd from the red hat 8.0 distribution and started it > up but, but looking over the conf files, there is apparently no way to > restrict identd to listening/binding only to the localhost adapter. You can use iptables to do this. Block tcp traffic to the identd port that isn't coming from loopback (though this implies that you have the situation above and shouldn't be using identd) or if the postgres server is on another machine, restrict traffic based on IP address.