Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
Дата
Msg-id 17137.1396017066@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd  (Christoph Berg <cb@df7cb.de>)
Ответы Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
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!

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd