X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AD6F4D1B550 for ; Tue, 28 Oct 2003 20:32:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65350-01 for ; Tue, 28 Oct 2003 16:31:48 -0400 (AST) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id DA3AAD1B53E for ; Tue, 28 Oct 2003 16:31:45 -0400 (AST) Received: (qmail 14299 invoked by uid 500); 28 Oct 2003 20:29:39 -0000 Date: Tue, 28 Oct 2003 14:29:39 -0600 From: Bruno Wolff III To: "Epps, Aaron M." Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Authentication Question Message-ID: <20031028202939.GA14260@wolff.to> Mail-Followup-To: "Epps, Aaron M." , "'pgsql-admin@postgresql.org'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/338 X-Sequence-Number: 10899 On Tue, Oct 28, 2003 at 14:12:31 -0600, "Epps, Aaron M." 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.