Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2tkh-008JFW-OL for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2024 14:51:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t2tkf-008H7D-RI for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2024 14:51:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2tkf-008H74-IO for pgsql-bugs@lists.postgresql.org; Mon, 21 Oct 2024 14:51:21 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2tkd-002EfJ-JG for pgsql-bugs@lists.postgresql.org; Mon, 21 Oct 2024 14:51:21 +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 49LEpHqT1556450; Mon, 21 Oct 2024 10:51:17 -0400 From: Tom Lane To: Alexey Shishkin cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_ident.conf + regular expressions issue In-reply-to: References: Comments: In-reply-to Alexey Shishkin message dated "Mon, 21 Oct 2024 11:43:47 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1556448.1729522277.1@sss.pgh.pa.us> Date: Mon, 21 Oct 2024 10:51:17 -0400 Message-ID: <1556449.1729522277@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexey Shishkin writes: > Pls. find attached the results of my tests regarding the topic. > I'm not 100% sure it's a bug, but at least it doesn't work as expected. There is something wrong with your test procedure. For example, in test05 the log message clearly shows that peer authentication failed, although you claimed to be testing ident authentication. You haven't given enough detail to determine why that happened; perhaps failure to do "pg_ctl reload" after changing config files? One point worth noting is that ident auth only works on TCP connections, not connections via a Unix socket. regards, tom lane