Roles with empty password (probably bug in libpq and in psql as well).

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Roles with empty password (probably bug in libpq and in psql as well).
Дата
Msg-id CAAfz9KN9WLbj_4rrEVP6ZSr-TxyL7v=B2jgL6B6O5crVeqqVhw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Roles with empty password (probably bug in libpq and in psql as well).  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: Roles with empty password (probably bug in libpq and in psql as well).  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
Hey all,

According to http://www.postgresql.org/docs/9.2/static/sql-alterrole.html

A query:
ALTER ROLE davide WITH PASSWORD NULL;
removes a role's password.

But it's impossible to pass empty (NULL) password to the backend
by using libpq, because connectOptions2() defined the fe-connect.c
reads a password from the ~/.pgpass even when a password
specified as an empty string literal ("").

Also, when connecting to the server via psql(1) by using a role
with removed password psql exists with status 2 and prints the error
message:
psql: fe_sendauth: no password supplied

Thanks.

--
// Dmitriy.


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: how to connect to oracle database
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Roles with empty password (probably bug in libpq and in psql as well).