Re: pg_hba.conf question - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_hba.conf question
Date
Msg-id 24399.980780857@sss.pgh.pa.us
Whole thread Raw
In response to pg_hba.conf question  ("Graham Vickrage" <graham@digitalplanit.com>)
Responses RE: pg_hba.conf question
List pgsql-admin
"Graham Vickrage" <graham@digitalplanit.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

pgsql-admin by date:

Previous
From: Kim Minh Kaplan
Date:
Subject: Re: postgres limitation
Next
From: Tom Lane
Date:
Subject: Re: Database ... has disappeared from pg_database