pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russ McBride <Russ@psyex.com>
To: nickf@ontko.com
To: pgsql-admin@postgresql.org
Subject: Re: authentication problems
Date: Sat, 29 Sep 2001 19:34:43 -0700
Message-ID: <v04210103b7dc258398f3@[64.170.120.108]> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com>

Hi,

I'm going to restate the situation since there was some confusion, 
judging from a couple of responses.

The goal-- The goal is to be able to connect to my database from the 
very machine where the database sits, without worrying about what my 
ip settings are (I switch them around a bunch for various reasons).

The normal solution-- set the following line in the pg_hba.conf file, 
which should be there by default:
host       all       127.0.0.1      255.255.255.255         trust
This should allow the localhost to connect regardless of its ip 
address setting.

The problem-- the above setting doesn't work as it should.  Even with 
the above line I can only connect if I manually type in the exact ip 
address of the machine (which is both the client machine and the 
posgresql server).

Nick said:
>
>If you can't ping localhost, or it doesn't resolve to 127.0.0.1, then you
>know the problem is at the operating system/network level & postgres and
>JDBC are probably just fine.
>
>-Nick
>

Thanks for the troubleshooting idea Nick.  I can ping localhost which 
does show up as 127.0.0.1.  The error message I get is:
No entry in pg_hba.conf_file for 169.245.10.10 [or whatever ip 
address I happen to be using at the time] for user: postgres 
database: testdb

I'm baffled.  Any remotely feasible other troubleshooting ideas are 
appreciated.

 
Russ 





view thread (18+ messages)  latest in thread

Message-ID: <v04210103b7dc258398f3@[64.170.120.108]>
Permalink:  ../v04210103b7dc258398f3@%5B64.170.120.108%5D/
Also on:    postgresql.org/message-id/v04210103b7dc258398f3@[64.170.120.108]

 · 

reply

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, nickf@ontko.com
  Subject: Re: authentication problems
  In-Reply-To: <v04210103b7dc258398f3@[64.170.120.108]>
  References: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com> <v04210103b7dc258398f3@[64.170.120.108]>

* 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