From: scott.marlowe <scott.marlowe@ihs.com>
To: dash@melchior.rogue-penguin.com
Cc: pgsql-php@postgresql.org
Subject: Re: Authentication Failure with pg_pconnect
Date: Tue, 19 Aug 2003 09:50:33 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0308190944370.9190-100000@css120.ihs.com> (raw)
In-Reply-To: <34595.24.169.200.199.1061227831.squirrel@rogue-penguin.com>
On Mon, 18 Aug 2003 dash@melchior.rogue-penguin.com wrote:
> I'm trying to get phpBB (php Bulletin Board System) running on my website
> but it's install program is having problems authenticating with
> postgreSQL. I've tried to find out why it won't work and have pretty much
> narrowed things down to this one function in the install script. If the
> following function doesn't seem flawed in any way, does anyone know why
> php my throw this error even though username and password is correct and
> user is logging in from localhost:
>
> ----
> Warning: pg_connect() [function.pg-connect]: Unable to connect to
> PostgreSQL server: FATAL 1: IDENT authentication failed for user
> "postgres" . in /var/www/html/phpBB2/db/postgres7.php on line 79
> phpBB : Critical Error
Stop, do not pass go, do not collect $200.00
Note the error is that "IDENT authentication failed"
Look up ident authentication:
http://www.postgresql.org/docs/7.3/static/auth-methods.html#AUTH-IDENT
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.
http://www.postgresql.org/docs/7.3/static/auth-methods.html
tells us the ways to authenticate, and you're likely looking at using
trust, password, md5.
md5 is a good choice, or, if no one else will be writing apps on the
machine, trust is fast, but there's no actual authentication going on with
that method.
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-php@postgresql.org
Cc: scott.marlowe@ihs.com, dash@melchior.rogue-penguin.com
Subject: Re: Authentication Failure with pg_pconnect
In-Reply-To: <Pine.LNX.4.33.0308190944370.9190-100000@css120.ihs.com>
References: <34595.24.169.200.199.1061227831.squirrel@rogue-penguin.com> <Pine.LNX.4.33.0308190944370.9190-100000@css120.ihs.com>
* 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