pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #16239: It is not possible to upgrade the password from md5 to SCRAM
2+ messages / 2 participants
[nested] [flat]
* BUG #16239: It is not possible to upgrade the password from md5 to SCRAM
@ 2020-01-31 11:44 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2020-01-31 11:44 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: valeh.agayev@gmail.com
The following bug has been logged on the website:
Bug reference: 16239
Logged by: Valeh Agayev
Email address: valeh.agayev@gmail.com
PostgreSQL version: 12.1
Operating system: CentOS Linux release 7.7.1908 (Core)
Description:
It is not possible to upgrade the password from md5 to SCRAM with \password
command, but with alter command is possible.
postgres=# SHOW password_encryption;
password_encryption
---------------------
scram-sha-256
(1 row)
postgres=# SELECT rolname,rolpassword ~'^SCRAM-SHA-256\$' AS has_upgraded
FROM pg_authid WHERE rolcanlogin;
rolname | has_upgraded
---------- +--------------
u1 | f
postgres | f
postgres=# \password u1;
Enter new password:
Enter it again:
postgres=# SELECT rolname,rolpassword ~'^SCRAM-SHA-256\$' AS has_upgraded
FROM pg_authid WHERE rolcanlogin;
rolname | has_upgraded
postgres | f
u1 | f
(5 rows)
postgres=# alter user u1 encrypted PASSWORD '123';
ALTER ROLE
postgres=# SELECT rolname,rolpassword ~'^SCRAM-SHA-256\$' AS has_upgraded
FROM pg_authid WHERE rolcanlogin;
rolname | has_upgraded
----------+--------------
postgres | f
u1 | t
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #16239: It is not possible to upgrade the password from md5 to SCRAM
@ 2020-01-31 13:21 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2020-01-31 13:21 UTC (permalink / raw)
To: valeh.agayev@gmail.com; pgsql-bugs@lists.postgresql.org
On 2020-01-31 12:44, PG Bug reporting form wrote:
> It is not possible to upgrade the password from md5 to SCRAM with \password
> command, but with alter command is possible.
It works for me. Are you perhaps using an older version of psql or libpq?
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-01-31 13:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31 11:44 BUG #16239: It is not possible to upgrade the password from md5 to SCRAM PG Bug reporting form <noreply@postgresql.org>
2020-01-31 13:21 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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