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

From Graham Vickrage
Subject RE: pg_hba.conf question
Date
Msg-id NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com
Whole thread Raw
In response to Re: pg_hba.conf question  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_hba.conf question
List 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@sss.pgh.pa.us]
Sent: 29 January 2001 15:08
To: Graham Vickrage
Cc: Postgres Admin
Subject: Re: [ADMIN] pg_hba.conf question


"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: Tom Lane
Date:
Subject: Re: Create index problem ( _bt_sort )
Next
From: Tom Lane
Date:
Subject: Re: pg_hba.conf question