| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Christoph Berg <cb(at)df7cb(dot)de> |
| Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, nicolas(at)marchildon(dot)net, Bugs for PostgreSQL <pgsql-bugs(at)postgresql(dot)org>, David Fetter <david(at)fetter(dot)org> |
| Subject: | Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd |
| Date: | 2014-03-28 14:31:06 |
| Message-ID: | 17137.1396017066@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Christoph Berg <cb(at)df7cb(dot)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!
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2014-03-28 14:33:48 | Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd |
| Previous Message | digoal | 2014-03-28 11:58:02 | BUG #9759: whe extend some varchar cols to varchar(n) , index filenode disappear, and 58P01 ERROR |