Re: GSSAPI and V2 protocol - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: GSSAPI and V2 protocol
Date
Msg-id 47A8A70B.4030300@hagander.net
Whole thread Raw
In response to Re: GSSAPI and V2 protocol  (Kris Jurka <books@ejurka.com>)
Responses Re: GSSAPI and V2 protocol  (Kris Jurka <books@ejurka.com>)
List pgsql-hackers
Kris Jurka wrote:
> 
> 
> On Tue, 5 Feb 2008, Magnus Hagander wrote:
> 
>> On Tue, Jan 29, 2008 at 03:34:19AM -0500, Kris Jurka wrote:
>>>
>>> Is it possible to authenticate using GSSAPI over the V2 protocol?  Is
>>> there any documentation on the message formats for V2?
>>
>> Honestly - don't know :-) Never looked at that part. I mean, the V2
>> protocol is *really* old by now, isn't it? Do you actually need it for
>> something?
>>
> 
> The JDBC driver exposes an option to connect via either protocol 
> version. I was looking at adding GSSAPI support and it seemed orthogonal 
> to the protocol version used, but I couldn't get it working under V2.  
> People still use the V2 protocol to connect because it uses string 
> interpolation for ? in prepared statements while V3 passes them out of 
> line.  So for apps that do things like "SELECT timestamp ? " that will 
> only work under V2.

Ok. I see the reason, but I can't help you further. Requires a deeper 
dig in the code, I guess.

Does this mean you have GSSAPI auth working for protocol v3? :-)

//Magnus


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Remove pg_dump -i option (was Re: Proposed patch: synchronized_scanning GUC variable)
Next
From: Kris Jurka
Date:
Subject: Re: GSSAPI and V2 protocol