[MASSMAIL] pgsql: With gssencmode='require', check credential cache before connect

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема [MASSMAIL] pgsql: With gssencmode='require', check credential cache before connect
Дата
Msg-id E1rtcH1-0012Sj-Hn@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: With gssencmode='require', check credential cache before connect
Список pgsql-committers
With gssencmode='require', check credential cache before connecting

Previously, libpq would establish the TCP connection, and then
immediately disconnect if the credentials were not available.  The
same thing happened if you tried to use a Unix domain socket with
gssencmode=require. Check those conditions before establishing the TCP
connection.

This is a very minor issue, but my motivation to do this now is that
I'm about to add more detail to the tests for encryption negotiation.
This makes the case of gssencmode=require but no credentials
configured fail at the same stage as with gssencmode=require and
GSSAPI support not compiled at all. That avoids having to deal with
variations in expected output depending on build options.

Discussion: https://www.postgresql.org/message-id/CAEze2Wja8VUoZygCepwUeiCrWa4jP316k0mvJrOW4PFmWP0Tcw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20f9b61cc1926775b1ceb25196df942efaf8bdd2

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 32 ++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: [MASSMAIL]pgsql: Make GIN test using injection points repeatable
Следующее
От: Michael Paquier
Дата:
Сообщение: [MASSMAIL]pgsql: injection_points: Introduce runtime conditions