pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Page <dpage@vale-housing.co.uk>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Cc: Magnus Hagander <mha@sollentuna.net>
Subject: Re: CVS-tip; SSLmode & Kerberos
Date: Fri, 14 Apr 2006 08:56:32 +0100
Message-ID: <C0651440.A04A%dpage@vale-housing.co.uk> (raw)
In-Reply-To: <443EF011.1050105@tpf.co.jp>




On 14/4/06 01:42, "Hiroshi Inoue" <inoue@tpf.co.jp> wrote:

> Dave Page wrote:
>> Hi,
>> 
>> I've just had some testing done by Magnus Hagander who uses psqlODBC in
>> a kerberos environment and a couple of minor issues came to light:
>> 
>> - Kerberos authentication (and therefore other features of libpq like
>> pgpass) can only be used if sslmode != d. This is because the original
>> CC_connect code is used instead of libpq in this case. Is there any
>> reason to not use libpq all the time regardless of sslmode (if it's
>> available of course)?
> 
> Because I don't want to use libpq if it's possible.
> The current implementation doesn't need libpq at all except
> when you need SSL, kerberos or ipv6 etc connection/authentication.
> I don't know what libraries the libpq would need in the future
> but it's quite unpleasant for me if the psqlodbc driver can't
> be loaded with tha lack of needeless librairies.
> In addtion using the native connection has the following 2 points
> at least.
> 1. The driver sets some session default parameters(DateStyle,
>     client_encoding etc) using start-up message.
> 2. You can try V2 protocol implementation when the V3 implementation
>     has some bugs or performance issues.
>     (personally It's hard for me to test v2 protocol implementation
>     without using the functionality because I don't have pre 7.4
>     server personally.)

I'm not suggesting we force the use of libpq, just that the choice of
sslmode does not affect whether or not Kerberos etc. will work. That's
extremely unintuitive given that the two are completely unrelated to the end
user.

One way of course would be to provide a separate option to allow you to
disable libpq, but I don't know if that is the only/best way.

Regards, Dave




view thread (3+ messages)

Message-ID: <C0651440.A04A%dpage@vale-housing.co.uk>
Permalink:  ../C0651440.A04A%25dpage@vale-housing.co.uk/
Also on:    postgresql.org/message-id/C0651440.A04A%dpage@vale-housing.co.uk

 · 

reply

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-odbc@postgresql.org
  Cc: dpage@vale-housing.co.uk, inoue@tpf.co.jp, mha@sollentuna.net
  Subject: Re: CVS-tip; SSLmode & Kerberos
  In-Reply-To: <C0651440.A04A%dpage@vale-housing.co.uk>
  References: <443EF011.1050105@tpf.co.jp> <C0651440.A04A%dpage@vale-housing.co.uk>

* 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