pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pedro Fonseca <pedro.fonseca@netcabo.pt>
Cc: pgsql-admin@postgresql.org
Subject: Re: Authorization problem
Date: Fri, 05 Oct 2001 14:11:16 -0400
Message-ID: <17419.1002305476@sss.pgh.pa.us> (raw)
In-Reply-To: <9pkop1$1ohb$1@news.tht.net>
References: <6352.1002131175@sss.pgh.pa.us>
	<9pkop1$1ohb$1@news.tht.net>

"Pedro Fonseca" <pedro.fonseca@netcabo.pt> writes:
> I mean, this is what the 'trust' AUTHTYPE does!

Quite.

> Isn't this a bad thing?

If you don't trust the users on your local machine, you can't use
"trust" authtype for local connections.  It's as simple as that.

The reason why there's not an equivalent of "ident" auth for local
socket connections is that most platforms don't provide any way to
find out who owns the other end of a local socket connection.
You're wasting your breath to complain to the Postgres developers
about an OS-level deficiency.  I'd suggest using ident and TCP/IP.
You can set PGHOST=127.0.0.1 in your environment so you don't need to
think about what kind of connection you are using.

BTW, PG 7.2 will support ident-like auth on local connections for
a small number of platforms where there is such a facility.  But
that doesn't help you today, and won't ever help you if you're not
on one of those platforms.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <17419.1002305476@sss.pgh.pa.us>
Permalink:  ../17419.1002305476@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17419.1002305476@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pedro.fonseca@netcabo.pt
  Subject: Re: Authorization problem
  In-Reply-To: <17419.1002305476@sss.pgh.pa.us>
  References: <6352.1002131175@sss.pgh.pa.us> <9pkop1$1ohb$1@news.tht.net> <17419.1002305476@sss.pgh.pa.us>

* 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