Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1al1NZ-0003Ad-GG for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Mar 2016 21:40:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1al1NZ-0005ig-34 for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Mar 2016 21:40:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1al1NX-0005iO-Hl; Tue, 29 Mar 2016 21:40:47 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1al1NS-0005M4-HW; Tue, 29 Mar 2016 21:40:46 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id A8AA140100E; Tue, 29 Mar 2016 14:40:34 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 675EA5D8; Tue, 29 Mar 2016 18:40:32 -0300 (CLT) Date: Tue, 29 Mar 2016 18:40:32 -0300 From: Alvaro Herrera To: Christian Ullrich Cc: Magnus Hagander , "pgsql-bugs@postgresql.org" , "pgsql-hackers@postgresql.org" Subject: Re: Re: [HACKERS] BUG #13854: SSPI authentication failure: wrong realm name used Message-ID: <20160329214032.GA925857@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56FAF29D.7010906@chrullrich.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org So, it seems that ClientAuthentication() expects to raise ereport(FATAL) in case of authentication failures. But what's the code path that causes that to happen if a ereport(ERROR) happens in there? Because all that code is pretty careful to not do ereport(ERROR) directly and instead return STATUS_ERROR which makes ClientAuthentication do the FATAL report. If this doesn't matter, then isn't this whole code overly complicated for no reason? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs