pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Courtois <christophe.courtois@dalibo.com>
To: pgsql-bugs@postgresql.org
Subject: pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
Date: Fri, 26 Jan 2018 17:22:59 +0100
Message-ID: <b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com> (raw)

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...)

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/




view thread (5+ messages)  latest in thread

Message-ID: <b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com>
Permalink:  ../b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com/
Also on:    postgresql.org/message-id/b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: christophe.courtois@dalibo.com
  Subject: Re: pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
  In-Reply-To: <b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com>
  References: <b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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