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 6B3F8D1B529 for ; Tue, 28 Oct 2003 20:34:57 +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 63847-09 for ; Tue, 28 Oct 2003 16:34:26 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 4BCB3D1B51A for ; Tue, 28 Oct 2003 16:34:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9SKYLit027912; Tue, 28 Oct 2003 15:34:22 -0500 (EST) To: "Epps, Aaron M." Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Authentication Question In-reply-to: References: Comments: In-reply-to "Epps, Aaron M." message dated "Tue, 28 Oct 2003 14:12:31 -0600" Date: Tue, 28 Oct 2003 15:34:21 -0500 Message-ID: <27911.1067373261@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/339 X-Sequence-Number: 10900 "Epps, Aaron M." 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