Re: hostnossl in pg_hba.conf demands a password

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: hostnossl in pg_hba.conf demands a password
Дата
Msg-id 13378.1479160375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: hostnossl in pg_hba.conf demands a password  (John Scalia <jayknowsunix@gmail.com>)
Ответы Re: hostnossl in pg_hba.conf demands a password  (John Scalia <jayknowsunix@gmail.com>)
Список pgsql-admin
John Scalia <jayknowsunix@gmail.com> writes:
> The only entries are a local connection line with md5 authentication specified and a line for local replication with
atrust authentication. Both of these entries do seem to be working properly. 

So the client is trying an SSL connection first (which would be the
default behavior for libpq at least), and that falls through the
hostnossl line and is captured by the md5 line.  Hence you get a
password prompt.  The client has no way to know that a non-SSL
connection would have gotten a different response.

You could change the md5 line to hostssl, perhaps.  Or configure
the client to try non-SSL first (see sslprefer).

            regards, tom lane


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

Предыдущее
От: John Scalia
Дата:
Сообщение: Re: hostnossl in pg_hba.conf demands a password
Следующее
От: John Scalia
Дата:
Сообщение: Re: hostnossl in pg_hba.conf demands a password