Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2644464FCC5 for ; Fri, 21 Nov 2008 02:04:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 42458-03 for ; Fri, 21 Nov 2008 02:04:36 -0400 (AST) X-Greylist: delayed 00:07:38.973846 by SQLgrey-1.7.6 Received: from mail.internode.com.au (mail.internode.com.au [192.83.231.27]) by mail.postgresql.org (Postfix) with ESMTP id 1AF4A64FC46 for ; Fri, 21 Nov 2008 02:04:35 -0400 (AST) Received: from [172.16.0.103] (staffnet.internode.com.au [203.26.95.65]) by mail.internode.com.au (8.13.7/8.12.1) with ESMTP id mAL5ur4S001552 for ; Fri, 21 Nov 2008 16:26:53 +1030 (CST) Message-ID: <49264DA5.4090806@internode.com.au> Date: Fri, 21 Nov 2008 16:26:53 +1030 From: Shilpa Sudhakar User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: ident authentication Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on mail X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200811/130 X-Sequence-Number: 30784 Hi, I am trying to test different kinds of authentication in postgres. I'm to find a efficient way to link the OS user with the postgres user. This is to help for auditing purpose. This is similar to the query raised by another postgres user. As suggested by Tom to use ident, i tried setting up ident but it isn't working. In the hba.conf file, i add the below entry local all all ident sameuser The user logged in at OS level is "abc". I created a user "abc" in postgres but when i do "psql -U abc -d dbname", i get the below error: FATAL: Ident authentication failed for user "abc" Should i put an entry in pg_ident.conf file? Is using ident still the right way to go? Is LDAP a better option because when we login to the server, we login with our LDAP username and password. Thanks and Regards, Shilpa