pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"

From: Christophe Courtois <christophe(dot)courtois(at)dalibo(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
Date: 2018-01-26 16:22:59
Message-ID: b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

In pg_hba.conf, the new authentication method must be set as
"scram-sha-256".

But it appears as "scram-sha256" (only one hyphen) in pg_hba_file_rules.
This is a bit confusing.

"scram-sha256" appears in commit c727f120 in src/backend/libpq/hba.c,
while defining the array UserAuthName.

I've not seen why it should be this way in the associated discussions
(https://www.postgresql.org/message-id/fde71ff1-5858-90c8-99a9-1c2427e7bafb@iki.fi
,
https://www.postgresql.org/message-id/CAB7nPqS99Z31f7jhoYYMoBDbuZSQRpn+HQzByA=EwfMDYwCk1Q@mail.gmail.com)

Is it just a remnant of previous versions of the patch or is there a
reason?

--
Christophe Courtois
Consultant Dalibo
http://dalibo.com/ - http://dalibo.org/

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message panos kaf 2018-01-26 16:51:20 pg_ctl isnt recognized
Previous Message Bruce Momjian 2018-01-26 13:35:54 Re: BUG #15011: pgAdmin doesn't connect local server