From: Tom Lane <tgl@sss.pgh.pa.us>
To: Epps, Aaron M. <Epps.Aaron@mayo.edu>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Authentication Question
Date: Tue, 28 Oct 2003 15:34:21 -0500
Message-ID: <27911.1067373261@sss.pgh.pa.us> (raw)
In-Reply-To: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu>
References: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu>
"Epps, Aaron M." <Epps.Aaron@mayo.edu> writes:
> I've got an authentication questions. I've just setup pg_hba.conf to use "local all all trust" for testing purposes, but when the application I'm using tries to connect to the PostgreSQL Db (Using PHP) I get the following error.
> " Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: IDENT authentication failed for user "webuser" . in /var/www/html/issue-tracker/includes/classes/dbi.class.php on line 98 "
> To me, it looks like PostgreSQL is still trying to authenticate, even
though it should be trusting all local socket connections.
(1) Did you SIGHUP the postmaster after editing the config file?
("pg_ctl reload" is the easy way to do this.) If not, it's still using
whatever setup you had before.
(2) It's fairly likely that PHP will try to connect via TCP/IP even for
a local server. If so, the relevant pg_hba.conf line will be the one
for 127.0.0.1, not the "local" line. "local" is for Unix-socket
connections.
regards, tom lane
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: tgl@sss.pgh.pa.us, Epps.Aaron@mayo.edu
Subject: Re: Authentication Question
In-Reply-To: <27911.1067373261@sss.pgh.pa.us>
References: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu> <27911.1067373261@sss.pgh.pa.us>
* 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