From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Hemil Ruparel <hemilruparel2002@gmail.com>
Cc: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Subject: Re: How to debug authentication issues in Postgres
Date: Fri, 27 Nov 2020 08:53:19 -0800
Message-ID: <1a7b5a92-749e-bdd9-db5d-8cc77027b641@aklaver.com> (raw)
In-Reply-To: <CANW1aT-S=C6CzdfS1csEw-GvCoPnToh-gFGxhMUO3cDSciP_Bw@mail.gmail.com>
References: <CANW1aT9EGHqcj4Qc4e83fOS4MBNVUpL9vPf6nknBd__DmeBGfA@mail.gmail.com>
<5a5ca12d399ce798d027575f1271e831a482e9be.camel@cybertec.at>
<CANW1aT9gd6gEt0bF6YFRoH7khrPNH9p1wzwjksL2SW8uriRmvQ@mail.gmail.com>
<555b511d7047970c9f940f6da62b91416831a73e.camel@cybertec.at>
<CANW1aT8gyiuK4bZkMuuGoWLz2LBkw4M_yoivT_+1KDE99-SHsw@mail.gmail.com>
<CANW1aT-Oj11RQUj62UQxzde6ziUpQjpv3JJgr__F4t48RZ6mMg@mail.gmail.com>
<1ae4c30f53a14dcba7579844a637a951@zuerich.ch>
<CANW1aT-LgHx+CnqimFUomNczq5RugHFL2bwVU=gz9eEcz_W_4A@mail.gmail.com>
<3641f7c1-9d05-039c-9bf4-30ee5e317773@aklaver.com>
<CANW1aT-S=C6CzdfS1csEw-GvCoPnToh-gFGxhMUO3cDSciP_Bw@mail.gmail.com>
On 11/27/20 7:15 AM, Hemil Ruparel wrote:
> The database has been upgraded
Just to be clear the postgresql.conf file has:
password_encryption = scram-sha-256
set correct?
>
> On Fri, Nov 27, 2020 at 8:41 PM Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 11/27/20 7:01 AM, Hemil Ruparel wrote:
> > I don't quite get what you mean by upgrading to scram-sha256. I
> > installed postgres 13. I haven't upgraded anything yet.
>
> In postgresql.conf see what password_encryption has been set to. If it
> is 'scram-sha-256` then it has been upgraded.
>
>
>
> >
> > On Fri, Nov 27, 2020 at 8:06 PM Zwettler Markus (OIZ)
> > <Markus.Zwettler@zuerich.ch <mailto:Markus.Zwettler@zuerich.ch>
> <mailto:Markus.Zwettler@zuerich.ch
> <mailto:Markus.Zwettler@zuerich.ch>>> wrote:
> >
> > Did you correctly upgrade your whole environment to
> scram-sha-256?____
> >
> > __ __
> >
> > __ __
> >
> > <quote>
> > To upgrade an existing installation from |md5|to |scram-sha-256|,
> > after having ensured that all client libraries in use are new
> enough
> > to support SCRAM, set |password_encryption = 'scram-sha-256'|in
> > |postgresql.conf|, make all users set new passwords, and
> change the
> > authentication method specifications in |pg_hba.conf|to
> > |scram-sha-256|.____
> >
> > </quote>____
> >
> > __ __
> >
> > __ __
> >
> > -Markus____
> >
> > __ __
> >
> > __ __
> >
> > __ __
> >
> > *Von:*Hemil Ruparel <hemilruparel2002@gmail.com
> <mailto:hemilruparel2002@gmail.com>
> > <mailto:hemilruparel2002@gmail.com
> <mailto:hemilruparel2002@gmail.com>>>
> > *Gesendet:* Freitag, 27. November 2020 09:38
> > *An:* Laurenz Albe <laurenz.albe@cybertec.at
> <mailto:laurenz.albe@cybertec.at>
> > <mailto:laurenz.albe@cybertec.at
> <mailto:laurenz.albe@cybertec.at>>>
> > *Cc:* pgsql-generallists.postgresql.org
> <http://pgsql-generallists.postgresql.org;
> > <http://pgsql-generallists.postgresql.org
> <http://pgsql-generallists.postgresql.org>;
> > <pgsql-general@lists.postgresql.org
> <mailto:pgsql-general@lists.postgresql.org>
> > <mailto:pgsql-general@lists.postgresql.org
> <mailto:pgsql-general@lists.postgresql.org>>>
> > *Betreff:* Re: How to debug authentication issues in Postgres____
> >
> > __ __
> >
> > The log says:____
> >
> > > FATAL: password authentication failed for user "centos"
> > > DETAIL: Connection matched pg_hba.conf line 88: "host
> user
> > password 0.0.0.0/0 <http://0.0.0.0/0; <http://0.0.0.0/0
> <http://0.0.0.0/0>;
> > scram-sha-256"____
> >
> > __ __
> >
> > I can't understand where is the problem as both psql and pgadmin
> > connect without problems using the same password____
> >
> > __ __
> >
> > On Fri, Nov 27, 2020 at 1:46 PM Hemil Ruparel
> > <hemilruparel2002@gmail.com
> <mailto:hemilruparel2002@gmail.com>
> <mailto:hemilruparel2002@gmail.com <mailto:hemilruparel2002@gmail.com>>>
> > wrote:____
> >
> > Sorry. This was the replication section:____
> >
> > local replication all
> peer
> > host replication all 127.0.0.1/32
> <http://127.0.0.1/32; <http://127.0.0.1/32 <http://127.0.0.1/32>;
> > scram-sha-256
> > host replication all ::1/128
> > scram-sha-256____
> >
> > __ __
> >
> > On Fri, Nov 27, 2020 at 1:41 PM Laurenz Albe
> > <laurenz.albe@cybertec.at
> <mailto:laurenz.albe@cybertec.at> <mailto:laurenz.albe@cybertec.at
> <mailto:laurenz.albe@cybertec.at>>>
> > wrote:____
> >
> > On Fri, 2020-11-27 at 13:34 +0530, Hemil Ruparel wrote:
> > > I have restarted postgres quite a few times to try
> making
> > configuration changes and it
> > > is always back up. I don't know how. Feels weird
> to me.
> > I didn't add the line
> > > "local replication all". It was there by default
> >
> > I don't believe that.
> >
> > This is how it looks by default:
> >
> > # Allow replication connections from localhost, by a user
> > with the
> > # replication privilege.
> > local replication all
> > trust
> > host replication all 127.0.0.1/32
> <http://127.0.0.1/32;
> > <http://127.0.0.1/32 <http://127.0.0.1/32>;
> trust
> > host replication all ::1/128
> > trust
> >
> > Yours,
> > Laurenz Albe
> > --
> > Cybertec | https://www.cybertec-postgresql.com
> <https://www.cybertec-postgresql.com;
> > <https://www.cybertec-postgresql.com
> <https://www.cybertec-postgresql.com>>____
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, hemilruparel2002@gmail.com, Markus.Zwettler@zuerich.ch, laurenz.albe@cybertec.at
Subject: Re: How to debug authentication issues in Postgres
In-Reply-To: <1a7b5a92-749e-bdd9-db5d-8cc77027b641@aklaver.com>
References: <CANW1aT9EGHqcj4Qc4e83fOS4MBNVUpL9vPf6nknBd__DmeBGfA@mail.gmail.com> <5a5ca12d399ce798d027575f1271e831a482e9be.camel@cybertec.at> <CANW1aT9gd6gEt0bF6YFRoH7khrPNH9p1wzwjksL2SW8uriRmvQ@mail.gmail.com> <555b511d7047970c9f940f6da62b91416831a73e.camel@cybertec.at> <CANW1aT8gyiuK4bZkMuuGoWLz2LBkw4M_yoivT_+1KDE99-SHsw@mail.gmail.com> <CANW1aT-Oj11RQUj62UQxzde6ziUpQjpv3JJgr__F4t48RZ6mMg@mail.gmail.com> <1ae4c30f53a14dcba7579844a637a951@zuerich.ch> <CANW1aT-LgHx+CnqimFUomNczq5RugHFL2bwVU=gz9eEcz_W_4A@mail.gmail.com> <3641f7c1-9d05-039c-9bf4-30ee5e317773@aklaver.com> <CANW1aT-S=C6CzdfS1csEw-GvCoPnToh-gFGxhMUO3cDSciP_Bw@mail.gmail.com> <1a7b5a92-749e-bdd9-db5d-8cc77027b641@aklaver.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