X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 89A0611F61BA for ; Thu, 13 Apr 2006 21:43:24 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 1.891 X-Spam-Level: * X-Spam-Status: No, score=1.891 required=5 tests=[AWL=0.080, RCVD_IN_WHOIS_BOGONS=1.811] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id irmsoU+OKj2c for ; Thu, 13 Apr 2006 21:43:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id C9C0A11F61C0 for ; Thu, 13 Apr 2006 21:43:20 -0300 (ADT) Received: (qmail 30136 invoked from network); 14 Apr 2006 09:43:20 +0900 Received: from unknown (HELO ?100.0.32.254?) (100.0.32.254) by sd2.tpf-fw-c.co.jp with SMTP; 14 Apr 2006 09:43:20 +0900 Message-ID: <443EF011.1050105@tpf.co.jp> Date: Fri, 14 Apr 2006 09:42:57 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Dave Page CC: pgsql-odbc@postgresql.org, Magnus Hagander Subject: Re: CVS-tip; SSLmode & Kerberos References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/52 X-Sequence-Number: 7579 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.) > - sslmode defaults to 'disable'. If libpq is available, 'prefer' would > seem the more secure default option. Any reason we should not change > this as well? There's no reason other than it's my default. regards, Hiroshi Inoue