Skip site navigation (1) Skip section navigation (2)

Re: pg_hba.conf question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Graham Vickrage" <graham(at)digitalplanit(dot)com>
Cc: "Postgres Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_hba.conf question
Date: 2001-01-29 15:07:37
Message-ID: 24399.980780857@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
"Graham Vickrage" <graham(at)digitalplanit(dot)com> writes:
> I noticed that you can't use the 'ident sameuser' with local unix sockets,
> what is the method of getting round this as I cant use trust for this
> database?

ident only works with TCP sockets.  You could require people to connect
to host localhost, ie, use a local TCP connection instead of a Unix
socket.  Set up 127.0.0.1 as ident sameuser and socket connections as
reject in pg_hba.conf.

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2001-01-29 15:26:33
Subject: Re: Database ... has disappeared from pg_database
Previous:From: Kim Minh KaplanDate: 2001-01-29 14:50:45
Subject: Re: postgres limitation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group