RE: pg_hba.conf question

From: "Graham Vickrage" <graham(at)digitalplanit(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Postgres Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: RE: pg_hba.conf question
Date: 2001-01-29 18:13:07
Message-ID: NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I have tried entering the following as suggested: -
local all reject
host all 127.0.0.1 255.255.255.0 ident
sameuser

I have also tried
local all reject
host all 127.0.0.1 255.255.255.0 trust

After trying the usual command %psql dbname to connect I keep getting the
message
No pg_hba.conf entry for host localhost, user postgres, database dbname

Is there something obvious I am missing????

Thanks

Graham

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 29 January 2001 15:08
To: Graham Vickrage
Cc: Postgres Admin
Subject: Re: [ADMIN] pg_hba.conf question

"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

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2001-01-29 18:26:53 Re: pg_hba.conf question
Previous Message Tom Lane 2001-01-29 17:20:13 Re: Create index problem ( _bt_sort )