From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Hugh Ranalli <hugh@whtc.ca>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Channel binding not supported using scram-sha-256 passwords
Date: Wed, 27 Feb 2019 07:35:28 +0900
Message-ID: <20190226223528.GA1655@paquier.xyz> (raw)
In-Reply-To: <7017.1551193475@sss.pgh.pa.us>
References: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com>
<20190215211417.GC14824@momjian.us>
<CAAhbUMPGQ6bNAJ22tQrA2RN245T+7Vb8g3VD3wvczDHqBTDevQ@mail.gmail.com>
<20190218010614.GE1864@paquier.xyz>
<56d28a96-6a18-8eb0-3c23-2a980a29a01f@2ndquadrant.com>
<20190221044758.GK15532@paquier.xyz>
<134517f0-2736-37ed-02c0-da3d41c7a0db@2ndquadrant.com>
<20190222052809.GE24416@paquier.xyz>
<4b0c2616-967e-356e-fff8-99f4177ff08f@2ndquadrant.com>
<7017.1551193475@sss.pgh.pa.us>
On Tue, Feb 26, 2019 at 10:04:35AM -0500, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> I tried reproducing the issue locally, but the required OpenSSL version
>> is too old to be easily available.
>
> Hm, I've got buildfarm hosts with quite old OpenSSLs handy. What
> tests do you want done, exactly?
I would think that Peter is looking for tests which use SCRAM
authentication over SSL with the following versions of OpenSSL used
by the client:
1) Server at 1.0.1, client at 1.0.2, channel binding should not be
used, authentication should succeed.
2) Server at 1.0.2, client at 1.0.1, here also channel binding should
not be used, and connection should succeed.
The patch changes the behavior of 2), which was failing as the client
would use SCRAM_PLUS as SASL mechanism over SCRAM even if the client
does not support channel binding.
What I do in such cases is to compile OpenSSL by myself and link
Postgres to it, here is a command to build shared libraries (all that
is documented in INSTALL):
./config --prefix=$INSTALLPATH shared
Another trick would be to comment out the sections in libpq where
HAVE_PGTLS_GET_PEER_CERTIFICATE_HASH is used to emulate a compilation
with OpenSSL 1.0.1 features and older, while still linking with
1.0.2.
If you want to test the patch and check by yourself, that's of course
fine by me. Just let me know when you are done and if you think the
patch is good for commit.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, hugh@whtc.ca, bruce@momjian.us
Subject: Re: Channel binding not supported using scram-sha-256 passwords
In-Reply-To: <20190226223528.GA1655@paquier.xyz>
References: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com> <20190215211417.GC14824@momjian.us> <CAAhbUMPGQ6bNAJ22tQrA2RN245T+7Vb8g3VD3wvczDHqBTDevQ@mail.gmail.com> <20190218010614.GE1864@paquier.xyz> <56d28a96-6a18-8eb0-3c23-2a980a29a01f@2ndquadrant.com> <20190221044758.GK15532@paquier.xyz> <134517f0-2736-37ed-02c0-da3d41c7a0db@2ndquadrant.com> <20190222052809.GE24416@paquier.xyz> <4b0c2616-967e-356e-fff8-99f4177ff08f@2ndquadrant.com> <7017.1551193475@sss.pgh.pa.us> <20190226223528.GA1655@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox