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 1kifnz-0004de-Vj for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 15:37:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kifny-0001Nx-TA for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 15:37:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kifny-0001Nq-Ls for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 15:37:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kifnw-0003fc-Jl for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 15:37:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0ARFaswp704985; Fri, 27 Nov 2020 10:36:54 -0500 From: Tom Lane To: Hemil Ruparel cc: Adrian Klaver , "Zwettler Markus (OIZ)" , "pgsql-generallists.postgresql.org" , Laurenz Albe Subject: Re: How to debug authentication issues in Postgres In-reply-to: References: <5a5ca12d399ce798d027575f1271e831a482e9be.camel@cybertec.at> <555b511d7047970c9f940f6da62b91416831a73e.camel@cybertec.at> <1ae4c30f53a14dcba7579844a637a951@zuerich.ch> <3641f7c1-9d05-039c-9bf4-30ee5e317773@aklaver.com> Comments: In-reply-to Hemil Ruparel message dated "Fri, 27 Nov 2020 20:50:02 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <704983.1606491414.1@sss.pgh.pa.us> Date: Fri, 27 Nov 2020 10:36:54 -0500 Message-ID: <704984.1606491414@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hemil Ruparel writes: > When I try to connect to the database, the log says: >> FATAL: password authentication failed for user "user" >> DETAIL: Connection matched pg_hba.conf line 88: "host user > password 0.0.0.0/0 scram-sha-256" > So I think the client is using scram-sha-256 No, what that says is that the server is going to insist on scram-sha-256. If the client can't handle SCRAM, then a failure would be expected. regards, tom lane