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 094A9D1B195 for ; Wed, 21 Jul 2004 20:41:12 -0300 (ADT) 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 11225-04 for ; Wed, 21 Jul 2004 23:41:07 +0000 (GMT) Received: from bifrost.admc.com (170-215-158-222.bras01.cha.wv.frontiernet.net [170.215.158.222]) by svr1.postgresql.org (Postfix) with ESMTP id F10D4D1B174 for ; Wed, 21 Jul 2004 20:41:01 -0300 (ADT) Received: from 170-215-158-222.bras01.cha.wv.frontiernet.net ([170.215.158.222] helo=admc.com) by bifrost.admc.com with asmtp (TLSv1:AES256-SHA:256) (Exim 4.30) id 1BnQhk-0001iF-C0 for pgsql-jdbc@postgresql.org; Wed, 21 Jul 2004 19:40:56 -0400 Message-ID: <40FEFF0E.6090807@admc.com> Date: Wed, 21 Jul 2004 19:41:02 -0400 From: Blaine Simpson User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: JDBC connection issue References: <581C48EBC132FF459E62A6809D0D72AE22C749@mail.sharedmarketing.com> <1ac22fd7.0407190027.53d75925@posting.google.com> <40FEE48C.3010208@admc.com> <40FEEFB8.8080603@admc.com> <40FEF36C.8060201@opencloud.com> <40FEF63D.1000503@admc.com> <40FEFAB6.2040304@opencloud.com> In-Reply-To: <40FEFAB6.2040304@opencloud.com> X-Enigmail-Version: 0.83.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; 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: 200407/261 X-Sequence-Number: 10645 Oliver Jowett wrote: > Blaine Simpson wrote: > >> Oliver Jowett wrote: >> >>> Blaine Simpson wrote: >>> >>>> You don't need an ident server if you use "md5", you do need an >>>> ident server if you >>>> use "trust". >>> >>> >>> >>> >>> No. Please read >>> http://www.postgresql.org/docs/7.4/static/auth-methods.html#AUTH-TRUST >> >> >> >> I did. It says nothing about setting up trust for networks sockets, >> implying that it is wide open. > > > Are we reading the same document? The URL I provided explicitly talks > about network sockets & trust auth. I quote: > > trust authentication is only suitable for TCP/IP connections if you > trust every user on every machine that is allowed to connect to the > server by the pg_hba.conf lines that specify trust. It is seldom > reasonable to use trust for any TCP/IP connections other than those > from localhost (127.0.0.1). I have very good reading comprehension. It says when TCP/IP suitable to use, but says nothing about what the requirements are. As I said, that IMPLIES that there are no additional requirements and it is wide open. The reason I question the implication is not that I can't read, but because I have tried to use psql (not JDBC) over tcpip sockets with "ident", and, what do you know, just like Kris said, there were system log messages about ident failures. This is because identd is disabled on our servers and blocked by our firewalls. >> But, as I've found in practice, and as Kris Jurka has pointed out, >> you do have to satisfy ident >> protocol requirements to use trust with network sockets. > > > You are misquoting Kris. He said: > >>> "trust" has nothing to do with "ident" authentication, trust does >>> not do >>> any authentication at all and just lets you in. >> I know he said that, and I disagree with that because immediately after he says that "Using ident authentication can be tricky with JDBC" (you can't do non-network socket ident with JDBC according to everything I've read about using the JDBC Driver) and "On the server side... requiring kernel support for passing user infomation and tcp/ip sockets requiring an ident server.". Yes, PG server-side code requires identd setup to use ident & tcp/ip. > When trust auth is configured (for a particular source address), no > ident query is done at all, so whether that source IP is running an > ident server or not is irrelevant. > > -O -- ICF: 703-934-3692 Cell: 703-944-9317