From: Graham Vickrage <graham@digitalplanit.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres Admin <pgsql-admin@postgresql.org>
Subject: RE: pg_hba.conf question
Date: Mon, 29 Jan 2001 18:13:07 -0000
Message-ID: <NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com> (raw)
In-Reply-To: <24399.980780857@sss.pgh.pa.us>
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
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: graham@digitalplanit.com, tgl@sss.pgh.pa.us
Subject: Re: pg_hba.conf question
In-Reply-To: <NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com>
References: <24399.980780857@sss.pgh.pa.us> <NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com>
* 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