pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
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 14:29:39 -0600
Message-ID: <20031028202939.GA14260@wolff.to> (raw)
In-Reply-To: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu>
References: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu>

On Tue, Oct 28, 2003 at 14:12:31 -0600,
  "Epps, Aaron M." <Epps.Aaron@mayo.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.



view thread (9+ messages)  latest in thread

Message-ID: <20031028202939.GA14260@wolff.to>
Permalink:  ../20031028202939.GA14260@wolff.to/
Also on:    postgresql.org/message-id/20031028202939.GA14260@wolff.to

 · 

reply

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: bruno@wolff.to, Epps.Aaron@mayo.edu
  Subject: Re: Authentication Question
  In-Reply-To: <20031028202939.GA14260@wolff.to>
  References: <AFB1612D9C37D21182E0006008A1F6F813D30DB8@excsrv14.mayo.edu> <20031028202939.GA14260@wolff.to>

* 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