public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: MM <[email protected]>
To: [email protected]
Subject: Re: libpq15 with postgres server16 and scram-sha-256
Date: Wed, 04 Sep 2024 13:24:25 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+Jb2D1dGP-F9OT8GPVHo=PX092Nic-yzRgYWaB=G4CqEROJzg@mail.gmail.com>
References: <CA+Jb2D1dGP-F9OT8GPVHo=PX092Nic-yzRgYWaB=G4CqEROJzg@mail.gmail.com>

On Wed, 2024-09-04 at 11:54 +0100, MM wrote:
> is it possible to connect with PGConnectdb version 15 to a server that has in METHOD in pg_hba.conf   "scram-sha-256"
> or do I need version libpq 16 ?

You can use "scram-sha-256" authentication from v10 on.

Note that it only works if the database password is a scram-sha-256 hash, not an MD5 hash.

Yours,
Laurenz Albe






view thread (2+ messages)

reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: libpq15 with postgres server16 and scram-sha-256
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox