X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3DAF13A493A for ; Fri, 19 Nov 2004 02:10:18 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26502-01 for ; Fri, 19 Nov 2004 02:10:10 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 2562D3A48F0 for ; Fri, 19 Nov 2004 02:10:13 +0000 (GMT) Received: from flood.opencloud.co.nz ([192.168.0.31]) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1CUyDz-0000L8-00; Fri, 19 Nov 2004 15:10:11 +1300 Message-ID: <419D5602.2090805@opencloud.com> Date: Fri, 19 Nov 2004 15:10:10 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ian Pilcher Cc: pgsql-jdbc@postgresql.org Subject: Re: Why IDENT doesn't work with JDBC References: <419D2EE2.20702@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/147 X-Sequence-Number: 11569 Ian Pilcher wrote: > Oliver Jowett wrote: > >> >> I'd guess that both IPV6 and authentication via ident-over-TCP are not >> particularly common. > > Did you read the bug? Yes, I did. > Java 1.4.2+ *always* uses IPv6 on Linux, unless > you tell it not to. Or unless IPv6 kernel support is not present. > AFAIK, all recent Linux distributions ship with > IPv6 turned on, so it's present even if there isn't an external IPv6 > network. None of the Linux boxes here have IPv6 enabled. If you're compiling a custom kernel, and you don't have a physical IPv6 network, why would you enable IPv6? > As far as ident-over-TCP, it's the only way to do it with JDBC. For my > money, it beats the heck out of storing your database password in your > web application! It's not particularly useful if you have anything other than a N:1 mapping between system users and database users, though. The setups I have seen either use localhost trust, or md5 + password on the client app. ident doesn't seem too common. So you need all of: recent JVM, IPv6-enabled kernel, buggy ident server, and pg_hba.conf that uses 'ident'. It's not too surprising that noone else appears to have hit this combination before. To answer your original question: yes, apparently you *are* the only one using that combination. Anyway, thanks for the report and workaround, it's good to get that information into the archives. There doesn't seem to be anything that postgresql or the JDBC driver can do about the problem, though. -O