libpq15 with postgres server16 and scram-sha-256

Started by MMover 1 year ago2 messagesgeneral
Jump to latest
#1MM
finjulhich@gmail.com

Hello
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 ?

If so, being constrained to remain at 15 libpq for now, is md5 allowed?

Rds,

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: MM (#1)
Re: libpq15 with postgres server16 and scram-sha-256

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