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 1pEtw0-0002QY-1Z for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jan 2023 15:19:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pEtvy-0008DN-Kg for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jan 2023 15:19:34 +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 1pEtvy-0008DE-CR for pgsql-bugs@lists.postgresql.org; Mon, 09 Jan 2023 15:19:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pEtvs-0002S6-5o for pgsql-bugs@lists.postgresql.org; Mon, 09 Jan 2023 15:19:33 +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 309FJP6N4092739; Mon, 9 Jan 2023 10:19:25 -0500 From: Tom Lane To: gopi.anbumech@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17740: Connecting postgresql 13 with different psql versions In-reply-to: <17740-f9e629897b58b2c3@postgresql.org> References: <17740-f9e629897b58b2c3@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 09 Jan 2023 08:25:45 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4092737.1673277565.1@sss.pgh.pa.us> Date: Mon, 09 Jan 2023 10:19:25 -0500 Message-ID: <4092738.1673277565@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > With following entries in pg_hba.conf, psql v13 is prompting for password > for Kerberos connections, whereas psql v11 succeeds connecting without any > issue. > local all pgbkp peer map=pgbackrest > hostssl all +citi_pg_app_read 0.0.0.0/0 gss map=krb > host all all 0.0.0.0/0 scram-sha-256 > [kdc_test_fid@icl-actpsql-vm1 /psql13]$ psql -U app_kdc_test_fid -h x.x.x -d > postgres -p 1524 > Password for user app_kdc_test_fid: I suspect the v13 libpq is trying GSSAPI encryption before SSL encryption, so it falls through the hostssl line and ends up at the catchall. regards, tom lane