Re: Authentication Failure with pg_pconnect - Mailing list pgsql-php

From Bruno Wolff III
Subject Re: Authentication Failure with pg_pconnect
Date
Msg-id 20030819160342.GE18374@wolff.to
Whole thread Raw
In response to Re: Authentication Failure with pg_pconnect  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-php
On Tue, Aug 19, 2003 at 09:50:33 -0600,
  "scott.marlowe" <scott.marlowe@ihs.com> wrote:
>
> Note that the username of the client (in this case, likely either httpd or
> nobody) is what postgresql inspects.  your connection string doesn't
> matter since postgresql is now looking for a user account by the name of
> whatever user your web server runs under.

This isn't exactly true. The id given in the connection string is
the one that is to be used for the postgres connection. The username of
the client is checked to see if it is an allowed system user for the
postgres user. It is common to force them to match, but other options
are possible.

pgsql-php by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Authentication Failure with pg_pconnect
Next
From: "scott.marlowe"
Date:
Subject: Re: Securing PHP scripts