From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
To: 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, 20 Feb 2019 16:53:32 +0100
Message-ID: <56d28a96-6a18-8eb0-3c23-2a980a29a01f@2ndquadrant.com> (raw)
In-Reply-To: <20190218010614.GE1864@paquier.xyz>
References: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com>
<20190215211417.GC14824@momjian.us>
<CAAhbUMPGQ6bNAJ22tQrA2RN245T+7Vb8g3VD3wvczDHqBTDevQ@mail.gmail.com>
<20190218010614.GE1864@paquier.xyz>
On 2019-02-18 02:06, Michael Paquier wrote:
> Now, the error message "channel binding not supported by this build"
> would show up by either the backend or the frontend if
> X509_get_signature_nid() is not present in the version of OpenSSL your
> version of libpq (for the frontend) or your backend are linked to.
> This function has been added in OpenSSL 1.0.2, so it seems to me that
> you have an OpenSSL version mismatch between your client and the
> server. My guess is that the client uses OpenSSL 1.0.2, but the
> server is linked to OpenSSL 1.0.1 or older.
I think there is a bug in the frontend code. If the server offers
SCRAM-SHA-256-PLUS, the client will choose it if SSL is in use, but it
will later fail with this error message if not
HAVE_PGTLS_GET_PEER_CERTIFICATE_HASH.
The code in src/interfaces/libpq/fe-auth.c:pg_SASL_init() should take
HAVE_PGTLS_GET_PEER_CERTIFICATE_HASH into account before selecting
SCRAM-SHA-256-PLUS.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, michael@paquier.xyz, hugh@whtc.ca, bruce@momjian.us
Subject: Re: Channel binding not supported using scram-sha-256 passwords
In-Reply-To: <56d28a96-6a18-8eb0-3c23-2a980a29a01f@2ndquadrant.com>
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>
* 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