Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B5AD4B5DBCD for ; Mon, 24 Oct 2011 16:35:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 79269-09 for ; Mon, 24 Oct 2011 19:35:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id C4A3DB5DBC0 for ; Mon, 24 Oct 2011 16:35:16 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 24 Oct 2011 14:35:17 -0500 Message-Id: <4EA5779E02000025000424F2@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 24 Oct 2011 14:35:10 -0500 From: "Kevin Grittner" To: "Karuna Karpe" , Subject: Re: user management and edbldr use References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/103 X-Sequence-Number: 38555 Karuna Karpe wrote: > I am create one linux user that "dba" > I create one database user "dba_user" > I add entry into pg_ident.conf > > MAPNAME SYSTEM-USERNAME PG-USERNAME > dba_map dba dba_user > > I want to connect dba user to database edb. > ./psql -d edb -U dba > > it give error can't connect. Please explain me how do this? You didn't show your pg_hba.conf file, which is a critical part of this picture; but from what you did show, it appears that you're not trying to use this correctly. The mapping you show would allow a user who had been authenticated as dba externally to log in to PostgreSQL as dba_user. You should be using the PostgreSQL user name on the psql command line, not the OS user name. You need a pg_hba.conf line which specifies how the OS user will be authenticated and specifying which map will be used to get from that OS user to which PostgreSQL user(s). Note that there might be more than one PostgreSQL user that a particular OS user is allowed to use for connections. http://www.postgresql.org/docs/current/interactive/auth-username-maps.html -Kevin