Re: Pg_hba not using local setting

From: James Hall <James(dot)Hall(at)RadioShack(dot)com>
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Pg_hba not using local setting
Date: 2003-03-14 19:19:04
Message-ID: EE80A67DD80E304DA779C72BC9FA999604840933@ntmailo.dhcp.tandy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I thought I may be confused.

I am using RH 7.1(apache) and perl.

Thanks,
-jim

-----Original Message-----
From: Doug McNaught [mailto:doug(at)mcnaught(dot)org]
Sent: Friday, March 14, 2003 12:49 PM
To: James Hall
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Pg_hba not using local setting

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

Browse pgsql-general by date

  From Date Subject
Next Message Rob Storrs 2003-03-14 19:40:18 Scope Problem with Execute?
Previous Message valerian 2003-03-14 19:15:23 Re: type-casting and LIKE queries