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

From Heikki Linnakangas
Subject [MASSMAIL] pgsql: With gssencmode='require', check credential cache before connect
Date
Msg-id E1rtcH1-0012Sj-Hn@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: With gssencmode='require', check credential cache before connect
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: [MASSMAIL]pgsql: Make GIN test using injection points repeatable
Next
From: Michael Paquier
Date:
Subject: [MASSMAIL]pgsql: injection_points: Introduce runtime conditions