Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kigzz-0007Xq-S4 for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 16:53:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kigzy-00060T-Ri for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 16:53:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kigzx-00060F-TC for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 16:53:30 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kigzs-00028F-9p for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 16:53:29 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6AF1D5C011C; Fri, 27 Nov 2020 11:53:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 27 Nov 2020 11:53:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=V Jayj8/nzt9CzkOU+SvniTGpDrWfOqu7HM3iGmPOmk0=; b=HnSypjTnZL+R1TRWZ Uyl1fBWIw1L1T5UuxvZtGcXBnp/fXicRHx1CY0h6izVxURYGaGKHLmV0/y5pHaVq YjoVLrSAVD6roCbWYVcJ4yNcTEZL6LTSFKDExBZcjptaTvzguaQeyj1fGxhdZ+wc ONpkNK95mGc6F0H08gGjU6NB1EFgjAEMM0U6aEvhQa9ZH+tR4vlXsHyI5Gh86Lqm +stVAww5SWqT/BBoYpxxGh8+n4ir9JENOdC/UltLki+SAk0RRer8BYSOOdIIFFpC YzjAfMHGYMNiMdAt+uOMKKP8qV72imtodzFUrEX/WYHicGUlqCOnKetDAnY/TqOs q8G9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=VJayj8/nzt9CzkOU+SvniTGpDrWfOqu7HM3iGmPOm k0=; b=UNN5ir+8e20ff/b1Rw2pje69vtoxBxsrwgUwUTh6ZRkpjmMApaNFibzAE LpGzwvvPbEYJnqrO1GP+Uyl+A1/FeIzJkyROyIvLaVqxUj4z/wwaAJUxJv8Afhns frSdCZ1CcYlnbhwhktkSYMVcfm64Jwk/xPyKpdv9TJokAbDg/IyrEjd5KRfIAwGf eSjH6UwQw0I+iMoczwfNHR5mM/6c9cU0d+0UwFrvx9ViRQxNCdUOkJMuwK/Ab4W0 +dXd7iFJV2+xtmSOi3KM70ldbh13+dA2aRs2blR80SpRk/mBmxXxC0at7D03nA6U id+kkM9qH3GnOJaVW9mcyGnq4B0HA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehgedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefgkeekfedvueeffeffudeuieejkedtgeeihedufeej veehhffgveefleduudffffenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpd dtrddtrddtrddtpdduvdejrddtrddtrddupdgthigsvghrthgvtgdqphhoshhtghhrvghs qhhlrdgtohhmnecukfhppeejhedrudejvddrudelrddufeelnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (75-172-19-139.tukw.qwest.net [75.172.19.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 44E473064AAE; Fri, 27 Nov 2020 11:53:20 -0500 (EST) Subject: Re: How to debug authentication issues in Postgres To: Hemil Ruparel Cc: "Zwettler Markus (OIZ)" , "pgsql-generallists.postgresql.org" , Laurenz Albe References: <5a5ca12d399ce798d027575f1271e831a482e9be.camel@cybertec.at> <555b511d7047970c9f940f6da62b91416831a73e.camel@cybertec.at> <1ae4c30f53a14dcba7579844a637a951@zuerich.ch> <3641f7c1-9d05-039c-9bf4-30ee5e317773@aklaver.com> From: Adrian Klaver Message-ID: <1a7b5a92-749e-bdd9-db5d-8cc77027b641@aklaver.com> Date: Fri, 27 Nov 2020 08:53:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > 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) > > > >> wrote: > > > >     Did you correctly upgrade your whole environment to > scram-sha-256?____ > > > >     __ __ > > > >     __ __ > > > >      > >     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|.____ > > > >     ____ > > > >     __ __ > > > >     __ __ > > > >     -Markus____ > > > >     __ __ > > > >     __ __ > > > >     __ __ > > > >     *Von:*Hemil Ruparel > >      >> > >     *Gesendet:* Freitag, 27. November 2020 09:38 > >     *An:* Laurenz Albe > >      >> > >     *Cc:* pgsql-generallists.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 > > >     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 > >      > >> > >     wrote:____ > > > >         Sorry. This was the replication section:____ > > > >         local   replication     all >       peer > >         host    replication     all 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 > >          >> > >         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 > > >             > >   trust > >             host    replication     all             ::1/128 > >                 trust > > > >             Yours, > >             Laurenz Albe > >             -- > >             Cybertec | https://www.cybertec-postgresql.com > > >              >____ > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com