Re: BUG #5008: Server Startup Problem - When server is configured for SSL - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: BUG #5008: Server Startup Problem - When server is configured for SSL
Date
Msg-id 9837222c0908270000s4a96cad5ief500b0ea2fc7403@mail.gmail.com
Whole thread Raw
In response to Re: BUG #5008: Server Startup Problem - When server is configured for SSL  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #5008: Server Startup Problem - When server is configured for SSL
List pgsql-bugs
On Wed, Aug 26, 2009 at 22:47, Tom Lane<tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Wed, Aug 26, 2009 at 15:57, Tom Lane<tgl@sss.pgh.pa.us> wrote:
>>> Magnus Hagander <magnus@hagander.net> writes:
>>>> But that will still fail if the user has set it up to require a client
>>>> certificate.
>>>
>>> But not till it gets to the pg_hba checks. =A0We might need to have some
>
>> How would that be different from what we have now? sslmode=3Dprefer will
>> still allow both ssl and non-ssl connection. It won't kick you out
>> until you reach the hba processing, will it?
>
> Hm, will it retry if the ssl setup step fails? =A0If so it'd be all right,
> but it's still a waste of cycles ...

Yes, that's the difference between prefer and require.

I think the main issue is that test_postmaster_connection() only
accepts two cases - successful login and password prompt. It would
have similar issues with say an ident mismatch, or loopback
connections configured for kerberos.


--=20
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #5011: Standby recovery unable to follow timeline change
Next
From: "Marko Tiikkaja"
Date:
Subject: BUG #5018: Window function alias