Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ef6mT-0001TB-89 for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jan 2018 16:23:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ef6mS-0002iu-21 for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jan 2018 16:23:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ef6mR-0002ij-O6 for pgsql-bugs@lists.postgresql.org; Fri, 26 Jan 2018 16:23:07 +0000 Received: from mimolette.dalibo.net ([212.85.157.144] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ef6mO-0003i6-7Y for pgsql-bugs@postgresql.org; Fri, 26 Jan 2018 16:23:06 +0000 Received: from [192.168.74.150] (ent67-1-82-228-9-193.fbx.proxad.net [82.228.9.193]) by mail.dalibo.com (Postfix) with ESMTPSA id 4F2B42C0794 for ; Fri, 26 Jan 2018 17:23:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1516983780; bh=EVxUmrFD0IIgWEBDIax1LyngxndX/edHsCdInK0logE=; h=To:From:Subject:Date:From; b=mDJq1le3nw1G8ym+mvozXvlGcSAGs9ETI5E1JzPeL5pi+MFMRIgCaSsCtE3zZu1dp lx8UW0IMddbIdTyxmRhH98mkf2b8nVTPxqu59BgG4ggR6FpfQbs2lOnRf6ha/2Tzrq n/5NHp8AsCjk0C7Zod4higDYNBqWc9SC5oIaYXto= To: pgsql-bugs@postgresql.org From: Christophe Courtois Subject: pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256" Organization: Dalibo Message-ID: Date: Fri, 26 Jan 2018 17:22:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: fr-classic Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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/