Re: Pg_hba not using local setting

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: James Hall <James(dot)Hall(at)RadioShack(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Pg_hba not using local setting
Date: 2003-03-14 18:48:36
Message-ID: m31y19g4xn.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

James Hall <James(dot)Hall(at)RadioShack(dot)com> writes:

> Thanks for your response.
>
> I changed pg_hba.conf to include the server ip address as shown below:
> ---
> Local all trust
> Host all 123.456.789.10 255.255.255.0
> password
> ---
>
> But still have the same result (users can login with any password if local
> is set to trust). The web server is on the same machine as the database, no
> java used.
>
> Did I misunderstand your comment regarding telling the webserver to connect
> using an IP address?

Yes.

You need to set the webapp's database config to make it connect to
an IP address instead of using the Unix socket (which it does by
default for same-machine connections). I can't tell you how to do
this because you haven't said what language/app server you're using
for the website.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2003-03-14 18:50:57 Re: The folding of unquoted names to lower case in PostgreSQL
Previous Message Doug McNaught 2003-03-14 18:45:47 Re: contrib/lo and restoring databases