From: Russ McBride <Russ@psyex.com>
To: pgsql-admin@postgresql.org
Subject: authentication problems
Date: Sat, 29 Sep 2001 00:43:13 -0700
Message-ID: <v04210106b7db2441dd7f@[64.164.9.231]> (raw)
Alright all you pg_hba.conf experts . . .
I can't for the life of me figure out why I'm getting connection
error messages which mention the pg_hba.conf file. I was trying to
use the default settings:
local all trust
host all 127.0.0.1 255.255.255.255 trust
As I understand it, the first line should let any user on the same
machine as the database connect through the regular UNIX sockets
while the second line should let any user on the same machine connect
through tcp/ip (jdbc, for example). These default settings are
working great on another machine I have that's also hosting a
database. A request can come in from any ip address on the
database's machine, and the connection goes through without a hitch.
But on my problematic machine postmaster won't let me connect
(through tcp/ip using jdbc) unless I explicitly type an additional
line into the pg_hba.conf file with the machine's actual ip address
and subnet mask. Why??? It should let me in regardless of the
machine's ip.
Also, I don't understand what's special about the above numbers
(127.0.0.1 and it's mask) such that they are used to allow any ips to
come in from the same machine.
I've tried other variations beside what the docs suggest, like the
following line that was recommended:
host all 127.0.0.1 255.0.0.0 trust
but this didn't help
Any suggestions are welcome . . . or will I forever be cursed to
modify the pg_hba.conf file every time I change my machine's ip
address.
Russ
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: Russ@psyex.com
Subject: Re: authentication problems
In-Reply-To: <v04210106b7db2441dd7f@[64.164.9.231]>
References: <v04210106b7db2441dd7f@[64.164.9.231]>
* 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