From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | David Steele <david(at)pgmasters(dot)net> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Christian Ullrich <chris(at)chrullrich(dot)net>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Robbie Harwood <rharwood(at)redhat(dot)com> |
Subject: | Re: [HACKERS] BUG #13854: SSPI authentication failure: wrong realm name used |
Date: | 2016-03-29 16:11:03 |
Message-ID: | CABUevEyym8eyTPj029rhDvwR1pp2uBAshP9u8D2_EYiHvYg5HQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Tue, Mar 29, 2016 at 5:09 PM, David Steele <david(at)pgmasters(dot)net> wrote:
> 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?
>
I'll pick it up to do that as well as committing it.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Christian Ullrich | 2016-03-29 21:24:45 | Re: BUG #13854: SSPI authentication failure: wrong realm name used |
Previous Message | David Steele | 2016-03-29 15:09:24 | Re: BUG #13854: SSPI authentication failure: wrong realm name used |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2016-03-29 16:11:25 | Re: Using quicksort for every external sort run |
Previous Message | Tom Lane | 2016-03-29 15:57:30 | Re: [PATCH] Improve safety of FormatMessage() calls on Windows |