Re: Authentication Question

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Epps, Aaron M(dot)" <Epps(dot)Aaron(at)mayo(dot)edu>
Cc: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Authentication Question
Date: 2003-10-28 20:29:39
Message-ID: 20031028202939.GA14260@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Oct 28, 2003 at 14:12:31 -0600,
"Epps, Aaron M." <Epps(dot)Aaron(at)mayo(dot)edu> wrote:
> 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. BTW, the web server and PostgreSQL server are on the same machine, so it's a local connection, not host. Do I need to modify anything in pg_ident.conf? I'd appreciate any help you can offer. Thx.

The authentication tests are done in order, with the first one that applies
being used. So if there is a rule for doing ident authentication for that
database and user before the trust rule, then the trust rule won't get used.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-10-28 20:34:21 Re: Authentication Question
Previous Message Gaetano Mendola 2003-10-28 20:26:24 transaction read only "per" user