Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UVDpt-0004hb-R0 for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Apr 2013 04:31:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UVDpt-0002cz-5w for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Apr 2013 04:31:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UVDps-0002ct-7o for pgsql-bugs@postgresql.org; Thu, 25 Apr 2013 04:31:08 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UVDpl-0008Nm-2K for pgsql-bugs@postgresql.org; Thu, 25 Apr 2013 04:31:07 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r3P4Uom15788; Wed, 24 Apr 2013 21:30:50 -0700 Message-ID: <5178B179.40104@hogranch.com> Date: Wed, 24 Apr 2013 21:30:49 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: support@securenetterm.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8114: Peer authentication in cgi-perl References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 4/24/2013 3:21 PM, support@securenetterm.com wrote: > The following bug has been logged on the website: > > Bug reference: 8114 > Logged by: Kenneth Robinette > Email address:support@securenetterm.com > PostgreSQL version: 9.1.0 > Operating system: Ubuntu 12.04.2 > Description: > > I am having the same problem described in: > 5.1.0.14.2.20020213180151.04bd2250@pop.ntlworld.com > > The cgi-script I am using works on a CentOS 6.4 system using PostgreSQL > version 8.4 and several older centos/redhat systems. The pg_hba.conf and > postgresql.conf are setup the same on all systems. > > When trying to connect On the Ubuntu 12.04.2 system, the database connect is > aborted. The following messages are in the postgresql-9.1-main.log. The > real username has been replaced by xxxxxxxx: > > 2013-04-24 16:23:18 CDT LOG: provided user name (xxxxxxxx) and > authenticated user name (www-data) do not match > 2013-04-24 16:23:18 CDT FATAL: Peer authentication failed for user > "xxxxxxxx" this isn't a bug, you can't use 'peer' (formerly known as ident sameuser) authentication to connect as a different role than your system username, unless you create an 'indent map'. you perhaps moved your 'same postgresql.conf and pg_hba.conf' files to the wrong place on ubuntu? debian/ubuntu put the config files under /etc/postgresql/..... also, there have been changes in the various config files between 8.4 and 9.1 such that copying the file from the older system might not run optimally on the newer. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs