pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael.paquier@gmail.com>
To: Meirav Rath <meirav.rath@imperva.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Cc: PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15035: scram-sha-256 blocks all logins
Date: Tue, 30 Jan 2018 17:10:18 +0900
Message-ID: <20180130081018.GA21433@paquier.xyz> (raw)
In-Reply-To: <DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>
References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org>
	<660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com>
	<DM2PR0601MB09561C86B3F67A7B56A38938E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>
	<CAKFQuwbthtxsDcf1YqYO4JiC3KeoejeuJsfWk6pFaSpauHAoaA@mail.gmail.com>
	<DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>

On Tue, Jan 30, 2018 at 07:56:40AM +0000, Meirav Rath wrote:
> <snip>
> host all all 0.0.0.0/0 scram-sha256
> <snip>
> 
> Because I can’t restart the postgresql service, it crashes when this
> is the setup.  User postgres is the superuser, by the way.

You need to make the difference between a crash and what seems to just
be an incorrect configuration which prevents your server to start.  If
you look at the line above which I have taken from the pg_hba.conf you
have written in your last email, it is incorrect.  "scram-sha256" is not
a correct HBA method.  You need to use "scram-sha-256" instead.

I would advise to look at the documentation correctly first:
https://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (24+ messages)  latest in thread

Message-ID: <20180130081018.GA21433@paquier.xyz>
Permalink:  ../20180130081018.GA21433@paquier.xyz/
Also on:    postgresql.org/message-id/20180130081018.GA21433@paquier.xyz

 · 

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: michael.paquier@gmail.com, meirav.rath@imperva.com, david.g.johnston@gmail.com, tomas.vondra@2ndquadrant.com, noreply@postgresql.org
  Subject: Re: BUG #15035: scram-sha-256 blocks all logins
  In-Reply-To: <20180130081018.GA21433@paquier.xyz>
  References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org> <660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com> <DM2PR0601MB09561C86B3F67A7B56A38938E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com> <CAKFQuwbthtxsDcf1YqYO4JiC3KeoejeuJsfWk6pFaSpauHAoaA@mail.gmail.com> <DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com> <20180130081018.GA21433@paquier.xyz>

* 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