pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Huber <looseleaf@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: authentication problems
Date: Sun, 30 Sep 2001 09:32:30 +0100 ((MEZ) Mitteleuropäische Zeit)
Message-ID: <200109300728.f8U7S1O22076@postgresql.org> (raw)

>Hmmm.  Perhaps the host line working fine for ip connections as well, 
>but something is going wrong in the JDBC-specific ip connections.  Is 
>there a way to make a local ip connection instead of a UNIX socket 
>connection with psql?
As Tom already said, the "host local allow" line has nothing to do with TCP/IP.

But if you want to explicitly specify a hostname, then use "-h <machinename>" or "-h <ip-adress>" as parameter to psql.

So what do the following commands return?
$ psql -h localhost testdb
(should be OK)

$ psql -h 127.0.0.1 testdb
(should be OK)

$ psql -h <ip-adress-of-machine> testdb
(should be rejected)

Maybe a stupid question, but does MacOS have the same path-format as Un*ces? (You wrote about connecting to your DB via JDBC from a MacOS (on another machine?), or did I misinterpret that?)

And you said that you never had to specify the host you connect to in your JDBC connect statement. Usually this is a "host=" parameter. I've never used JDBC, but ODBC, Pg, ADO (via ODBC), ...

You posted an error message:
>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

How exactly did you connect to your DB and from which computer?

Stefan



view thread (18+ messages)  latest in thread

Message-ID: <200109300728.f8U7S1O22076@postgresql.org>
Permalink:  ../200109300728.f8U7S1O22076@postgresql.org/
Also on:    postgresql.org/message-id/200109300728.f8U7S1O22076@postgresql.org

 · 

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: looseleaf@gmx.net
  Subject: Re: authentication problems
  In-Reply-To: <200109300728.f8U7S1O22076@postgresql.org>
  References: <200109300728.f8U7S1O22076@postgresql.org>

* 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