libpq15 with postgres server16 and scram-sha-256

Поиск
Список
Период
Сортировка
Искать

libpq15 with postgres server16 and scram-sha-256

От:
MM <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,

Re: libpq15 with postgres server16 and scram-sha-256

От:
Laurenz Albe <laurenz.albe@cybertec.at>
Дата:
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


FAQ