X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 9CD7111F6B83 for ; Fri, 14 Apr 2006 04:54:53 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.809 X-Spam-Level: X-Spam-Status: No, score=0.809 required=5 tests=[AWL=-1.908, BAYES_00=-2.599, RCVD_NUMERIC_HELO=1.5, SPF_HELO_SOFTFAIL=2.432, SPF_SOFTFAIL=1.384] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id x8Oys-RXx3QL for ; Fri, 14 Apr 2006 04:54:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by postgresql.org (Postfix) with ESMTP id E1C7511F66B9 for ; Fri, 14 Apr 2006 04:54:32 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1FUJ8S-0001Wi-7A for pgsql-odbc@postgresql.org; Fri, 14 Apr 2006 07:54:32 +0000 Received: from 84.13.77.124 ([84.13.77.124]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Fri, 14 Apr 2006 07:54:31 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Fri, 14 Apr 2006 08:56:32 +0100 Subject: Re: CVS-tip; SSLmode & Kerberos From: Dave Page To: Hiroshi Inoue CC: , Magnus Hagander Message-ID: Thread-Topic: CVS-tip; SSLmode & Kerberos Thread-Index: AcZfXHHRf7gDtONsTCyjGjP5AMPZOAAPH/Mz In-Reply-To: <443EF011.1050105@tpf.co.jp> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Archive-Number: 200604/54 X-Sequence-Number: 7581 On 14/4/06 01:42, "Hiroshi Inoue" 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