From: David Steele <david@pgmasters.net>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Christian Ullrich <chris@chrullrich.net>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Robbie Harwood <rharwood@redhat.com>
Cc: Magnus Hagander <magnus@hagander.net>
Subject: Re: BUG #13854: SSPI authentication failure: wrong realm name used
Date: Tue, 29 Mar 2016 11:09:24 -0400
Message-ID: <56FA9AA4.9090005@pgmasters.net> (raw)
In-Reply-To: <20160324212249.GA697466@alvherre.pgsql>
References: <20160324212249.GA697466@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: david@pgmasters.net, alvherre@2ndquadrant.com, chris@chrullrich.net, pgsql-hackers@postgresql.org, rharwood@redhat.com, magnus@hagander.net
Subject: Re: BUG #13854: SSPI authentication failure: wrong realm name used
In-Reply-To: <56FA9AA4.9090005@pgmasters.net>
References: <20160324212249.GA697466@alvherre.pgsql> <56FA9AA4.9090005@pgmasters.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox