RE: BUG #16672: Postgres user passwords are corrupted during migration

From: "akada shigeki" <zz5s-akd(at)asahi-net(dot)or(dot)jp>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #16672: Postgres user passwords are corrupted during migration
Date: 2020-10-15 00:48:26
Message-ID: 000101d6a28c$e4fdfca0$aef9f5e0$@asahi-net.or.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Mr.Tom Lane
solved.
I was able to restore by changing SCRAM-SHA-256 in HBA.Conf to MD5.
Does this mean that PSQL doesn't support SHA-256 encryption?

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Thursday, October 15, 2020 9:10 AM
To: zz5s-akd(at)asahi-net(dot)or(dot)jp
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16672: Postgres user passwords are corrupted during
migration

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> The postgres user password is corrupted when migrating from Postgresql
> 12.4 to Postgresql 13.

I tried to verify that claim, without success: AFAICS, dump/reload will
correctly propagate the password to the new server, in either md5 or SCRAM
format.

You have not shown very much supporting detail, but I wonder whether the
password is hashed in md5 format and the v13 server's pg_hba.conf is set to
only allow SCRAM passwords. The report sent to the client intentionally
just says "password authentication failed", but you could look in the
postmaster log to see what it says about the failure.
Also, look in pg_authid (of either server), or in the dump file, to see
whether the rolpassword value starts with "md5" or "SCRAM-SHA-256".

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-10-15 01:07:31 Re: BUG #16672: Postgres user passwords are corrupted during migration
Previous Message Tom Lane 2020-10-15 00:09:48 Re: BUG #16672: Postgres user passwords are corrupted during migration