Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 85A5E64FC42 for ; Sat, 29 Nov 2008 14:39:05 -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 61230-10 for ; Sat, 29 Nov 2008 14:39:02 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mail.postgresql.org (Postfix) with ESMTP id 4F2D764FC53 for ; Sat, 29 Nov 2008 14:39:01 -0400 (AST) Received: from ridley.home ([173.67.13.101]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KB300CO9YGOLEA4@vms044.mailsrvcs.net> for pgsql-admin@postgresql.org; Sat, 29 Nov 2008 12:38:49 -0600 (CST) Date: Sat, 29 Nov 2008 13:38:47 -0500 From: Robert Treat Subject: Re: ident authentication In-reply-to: <49264DA5.4090806@internode.com.au> To: pgsql-admin@postgresql.org Cc: Shilpa Sudhakar Message-id: <200811291338.47861.xzilla@users.sourceforge.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <49264DA5.4090806@internode.com.au> User-Agent: KMail/1.9.10 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/175 X-Sequence-Number: 30829 On Friday 21 November 2008 00:56:53 Shilpa Sudhakar wrote: > 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 > did you reload the file after modifying it? > 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" > What error do you get if you do "psql -d dbname" ? > 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 -- Robert Treat Conjecture: http://www.xzilla.net Consulting: http://www.omniti.com