pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: support@securenetterm.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8114: Peer authentication in cgi-perl
Date: Wed, 24 Apr 2013 21:30:49 -0700
Message-ID: <5178B179.40104@hogranch.com> (raw)
In-Reply-To: <E1UV83m-0001Fj-2r@wrigleys.postgresql.org>
References: <E1UV83m-0001Fj-2r@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (4+ messages)  latest in thread

Message-ID: <5178B179.40104@hogranch.com>
Permalink:  ../5178B179.40104@hogranch.com/
Also on:    postgresql.org/message-id/5178B179.40104@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pierce@hogranch.com, support@securenetterm.com
  Subject: Re: BUG #8114: Peer authentication in cgi-perl
  In-Reply-To: <5178B179.40104@hogranch.com>
  References: <E1UV83m-0001Fj-2r@wrigleys.postgresql.org> <5178B179.40104@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox