X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F3E08474E4F for ; Wed, 26 Feb 2003 19:55:45 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 70575-10 for ; Wed, 26 Feb 2003 19:55:34 -0500 (EST) Received: from concepts.co.nz (203-79-66-220.adsl-wns.paradise.net.nz [203.79.66.220]) by postgresql.org (Postfix) with ESMTP id CF514474E42 for ; Wed, 26 Feb 2003 19:55:33 -0500 (EST) Received: from ccls01.int.chc.concepts.co.nz ([192.168.0.5]) by goliath.concepts.co.nz with SMTP id <118082>; Thu, 27 Feb 2003 13:55:27 +1300 Received: from 192.168.0.6 by ccls01.int.chc.concepts.co.nz (InterScan E-Mail VirusWall NT); Thu, 27 Feb 2003 13:55:22 +1300 Received: from finlandia.concepts.co.nz (not verified[192.168.0.8]) by ccls02.int.chc.concepts.co.nz with MailMarshal (4, 2, 5, 0) id ; Thu, 27 Feb 2003 13:55:22 +1300 Received: from concepts.co.nz (IDENT:504@freeflight.concepts.co.nz [192.168.0.16]) by finlandia.concepts.co.nz (8.11.6/8.11.6) with ESMTP id h1R0tLg21340; Thu, 27 Feb 2003 13:55:21 +1300 Message-ID: <3E5D6328.3040704@concepts.co.nz> Date: Thu, 27 Feb 2003 14:00:24 +1300 From: Stephen Harris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: ident sameuser failure References: <3E5A801B.7010903@concepts.co.nz> <6460.1046132486@sss.pgh.pa.us> <3E5C2335.9040606@concepts.co.nz> <27047.1046236716@sss.pgh.pa.us> In-Reply-To: <27047.1046236716@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/410 X-Sequence-Number: 7608 Well, I'll be ... I changed postmaster to log to a file, but that didnt reveal much. I upped the syslog vebosity to debug in identd.conf and added an entry daemon.* /var/log/postmaster.log in syslog.conf. Then as user sharris I did: psql -h workbench -d testuserdb -U testuser While doing tail -f /var/log/postmaster.log I saw Feb 27 00:47:05 freeflight identd[20989]: reply to 192.168.0.141: 36458, 5432 : USERID : OTHER :504 So that got me wondering, does the U switch work? So I su - 'ed testuser and did psql -h workbench -d testuserdb I saw Feb 27 00:49:53 freeflight identd[21082]: reply to 192.168.0.141: 36465, 5432 : USERID : OTHER :testuser And was given the database shell. Testusers uid on the client is 1293 and on the server is 501. However, as soon as I stop identd it stops working. So you were right, it all comes down to identd, but the U switch in psql should of worked? Perhaps I should make the uids match? Many thanks Stephen. Computer Concepts Limited 25 Leslie Hills Drive PO Box 8744 Riccarton Christchurch, New Zealand Phone: +64-3-348-2500 Fax: +64-3-343-7569 Notice of confidential information: The information contained in this e-mail message is confidential information and may also be legally privileged, intended only for the individual or entity named above. If you are not the intended recipient you are hereby notified that any use, review, dissemination, distribution or copying of this document is strictly prohibited. If you have received this document in error, please immediately notify the sender by telephone and destroy the message. Thank you.