pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Blaine Simpson <blaine.simpson@admc.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC connection issue
Date: Wed, 21 Jul 2004 19:41:02 -0400
Message-ID: <40FEFF0E.6090807@admc.com> (raw)
In-Reply-To: <40FEFAB6.2040304@opencloud.com>
References: <581C48EBC132FF459E62A6809D0D72AE22C749@mail.sharedmarketing.com>
	<1ac22fd7.0407190027.53d75925@posting.google.com>
	<40FEE48C.3010208@admc.com>
	<Pine.BSO.4.56.0407211706450.9870@leary.csoft.net>
	<40FEEFB8.8080603@admc.com>
	<40FEF36C.8060201@opencloud.com>
	<40FEF63D.1000503@admc.com>
	<40FEFAB6.2040304@opencloud.com>

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




view thread (18+ messages)  latest in thread

Message-ID: <40FEFF0E.6090807@admc.com>
Permalink:  ../40FEFF0E.6090807@admc.com/
Also on:    postgresql.org/message-id/40FEFF0E.6090807@admc.com

 · 

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-jdbc@postgresql.org
  Cc: blaine.simpson@admc.com
  Subject: Re: JDBC connection issue
  In-Reply-To: <40FEFF0E.6090807@admc.com>
  References: <581C48EBC132FF459E62A6809D0D72AE22C749@mail.sharedmarketing.com> <1ac22fd7.0407190027.53d75925@posting.google.com> <40FEE48C.3010208@admc.com> <Pine.BSO.4.56.0407211706450.9870@leary.csoft.net> <40FEEFB8.8080603@admc.com> <40FEF36C.8060201@opencloud.com> <40FEF63D.1000503@admc.com> <40FEFAB6.2040304@opencloud.com> <40FEFF0E.6090807@admc.com>

* 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