Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 9DEE447599D for ; Sat, 29 Jun 2002 15:48:17 -0400 (EDT) Mailbox-Line: From mt@open2web.com Sat Jun 29 15:48:17 2002 Received: from tomts23-srv.bellnexxia.net (tomts23.bellnexxia.net [209.226.175.185]) by postgresql.org (Postfix) with ESMTP id B9510475910 for ; Sat, 29 Jun 2002 15:48:16 -0400 (EDT) Received: from nino ([65.92.163.219]) by tomts23-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with SMTP id <20020629194800.SKPN17803.tomts23-srv.bellnexxia.net@nino> for ; Sat, 29 Jun 2002 15:48:00 -0400 Date: Sat, 29 Jun 2002 15:41:06 -0400 From: Mark Tessier To: pgsql-admin@postgresql.org Subject: db connection fails Message-Id: <20020629154106.084e7ae3.mt@open2web.com> X-Mailer: Sylpheed version 0.7.8 (GTK+ 1.2.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.9 required=5.0 tests=SUPERLONG_LINE,RCVD_IN_RFCI version=2.30 X-Spam-Level: X-Archive-Number: 200206/251 X-Sequence-Number: 4684 I get a script error when trying to connect to postgres. It fails in the following part of the script: PgDatabase conn ("host=localhost dbname=group3"); if (conn.ConnectionBad()) { ... } /var/log/messages shows authentication failure; logname=capmag uid=502 euid=0 tty= ruser = rhost= user=postgres As "capmag" user with DBCREATE privileges, created db called group3. As I'm accessing group3 via html and C++ script in cgi-bin, I've created a user named "apache" with grant all priviledges in group3. Mark