Re: SSL and md5 password?

Поиск
Список
Период
Сортировка
От Peter Koczan
Тема Re: SSL and md5 password?
Дата
Msg-id 4544e0330810292026j1b8e9307j62d6a9c828c7a6b5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SSL and md5 password?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SSL and md5 password?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Wed, Oct 29, 2008 at 1:49 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> According to this, you're trying to connect with SSL off, right?  I
> don't think you've got any matching lines for that in your
> pg_hba.conf.  But I could be reading that wrong.

Well, psql is trying to connect with SSL off even though postgres was
built with SSL support, the server has SSL turned on, and psql
connects with SSL by default for Kerberos connections. Where I was
getting confused was that, for some reason, md5 authentication wasn't
using SSL (or at least that's what the error suggested) and the only
thing I changed was what user/auth-method I was using.

On Wed, Oct 29, 2008 at 9:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
>> libpq tries to connect with SSL on and then falls back to SSL off.  If
>> the latter fails, the error message from the first attempt has been
>> overwritten, and only the second one is logged.
>> This has been fixed by Magnus on CVS HEAD.
>
> Right.  So in the meantime, what Peter should do is try the problem case
> after
>        export PGSSLMODE=require
> so that he can see the error message that's relevant to his desired use.

After exporting that environment variable, it works. Thanks.

Peter

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SSL and md5 password?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SSL and md5 password?