pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christoph Berg <cb@df7cb.de>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: nicolas@marchildon.net
Cc: Bugs for PostgreSQL <pgsql-bugs@postgresql.org>
Cc: David Fetter <david@fetter.org>
Subject: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
Date: Fri, 28 Mar 2014 10:33:48 -0400
Message-ID: <20140328143348.GB18523@momjian.us> (raw)
In-Reply-To: <17137.1396017066@sss.pgh.pa.us>
References: <296.1367950228@sss.pgh.pa.us>
	<20130507181904.GA26800@eldon.alvh.no-ip.org>
	<20131204155257.GD17114@momjian.us>
	<20131204190338.GP5158@eldon.alvh.no-ip.org>
	<20131209210532.GA2119@momjian.us>
	<20131209214539.GL6777@eldon.alvh.no-ip.org>
	<20131210004734.GE2119@momjian.us>
	<20131218171628.GA1690@momjian.us>
	<20140328104153.GB15310@msgid.df7cb.de>
	<17137.1396017066@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Fri, Mar 28, 2014 at 10:31:06AM -0400, Tom Lane wrote:
> Christoph Berg <cb@df7cb.de> writes:
> > the quoted code bit above in src/backend/libpq/auth.c is utterly
> > broken: for peer authentication, it uses get_user_name(), which yields
> > the *server* user name, not the client's. For that reason, peer
> > authentication in 9.4devel is broken - you can't log in with your user
> > name, but you can just say -U postgres (or what the initdb user was),
> > and it will let you in.
> 
> > The attached patch reverts the src/backend/libpq/auth.c portion of
> > 613c6d26bd42dd8c2dd0664315be9551475b8864 and fixes peer auth.
> 
> Applied, thanks!

I guess I should have said I was working on an updated patch.  I will
merge my changes in.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
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 (24+ messages)  latest in thread

Message-ID: <20140328143348.GB18523@momjian.us>
Permalink:  ../20140328143348.GB18523@momjian.us/
Also on:    postgresql.org/message-id/20140328143348.GB18523@momjian.us

 · 

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: bruce@momjian.us, tgl@sss.pgh.pa.us, cb@df7cb.de, alvherre@2ndquadrant.com, nicolas@marchildon.net, david@fetter.org
  Subject: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
  In-Reply-To: <20140328143348.GB18523@momjian.us>
  References: <296.1367950228@sss.pgh.pa.us> <20130507181904.GA26800@eldon.alvh.no-ip.org> <20131204155257.GD17114@momjian.us> <20131204190338.GP5158@eldon.alvh.no-ip.org> <20131209210532.GA2119@momjian.us> <20131209214539.GL6777@eldon.alvh.no-ip.org> <20131210004734.GE2119@momjian.us> <20131218171628.GA1690@momjian.us> <20140328104153.GB15310@msgid.df7cb.de> <17137.1396017066@sss.pgh.pa.us> <20140328143348.GB18523@momjian.us>

* 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