Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akvGu-0004Wf-02 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 15:09:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1akvGt-0003ff-In for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 15:09:31 +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 1akvGs-0003do-Cp; Tue, 29 Mar 2016 15:09:30 +0000 Received: from linode.thelabyrinth.net ([198.58.117.137] helo=mail.thelabyrinth.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1akvGp-00055R-BV; Tue, 29 Mar 2016 15:09:29 +0000 Received: from [192.168.1.103] (wsip-184-178-50-4.dc.dc.cox.net [184.178.50.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteelepg) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 8199212D13; Tue, 29 Mar 2016 15:09:25 +0000 (UTC) Subject: Re: BUG #13854: SSPI authentication failure: wrong realm name used To: Alvaro Herrera , Christian Ullrich References: <20160324212249.GA697466@alvherre.pgsql> Cc: "pgsql-bugs@postgresql.org" , "pgsql-hackers@postgresql.org" , Robbie Harwood , Magnus Hagander From: David Steele Message-ID: <56FA9AA4.9090005@pgmasters.net> Date: Tue, 29 Mar 2016 11:09:24 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160324212249.GA697466@alvherre.pgsql> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 3/24/16 5:22 PM, Alvaro Herrera wrote: > Christian Ullrich wrote: > >> To be honest, I'm not sure what can and cannot be done in auth code. I >> took inspiration from the existing SSPI code and nearly every error >> check in pg_SSPI_recvauth() ends up doing ereport(ERROR) already, >> directly or via pg_SSPI_error(). If this could cause serious trouble, >> someone would have noticed yet. > > I think the problem is whether the report is sent to the client or not, > but I may be confusing with something else (COMMERROR reports?). > >> What *could* happen, anyway? Can ereport(ERROR) in a backend make the >> postmaster panic badly enough to force a shared memory reset? > > Probably not, since it's running in a backend already at that point, not > in postmaster. It seems like this patch should be set "ready for committer". Can one of the reviewers do that if appropriate? Thanks, -- -David david@pgmasters.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers