Received: from peculiarweb.com ([209.203.233.5]) by hub.org (8.8.8/8.7.5) with ESMTP id BAA09264; Fri, 11 Sep 1998 01:13:57 -0400 (EDT) Received: from loonybin (mo@peculiar.sound.net [209.153.96.230]) by peculiarweb.com (8.8.7/8.8.5) with SMTP id AAA04397; Fri, 11 Sep 1998 00:12:44 -0500 (CDT) Sender: mo@peculiarweb.com Message-ID: <35F8B0F4.148A0C4@midwestonline.com> Date: Fri, 11 Sep 1998 00:11:17 -0500 From: Midwest Online X-Mailer: Mozilla 3.04 (X11; I; Linux 2.0.0 i586) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org CC: pgsql-hackers@postgresql.org Subject: getting "fe_setauthsvc: invalid name" error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi people, I'm using some c++ code to connect to a postgresql 6.3.2 database. I need to use this for a CGI application on a website we maintain. It runs perfectly from the command line on my linux machine, and also from the command line on the BSDI machine we use for a virtually-hosted server. The problem I'm having is when I attempt to execute it as a CGI app from the cgi-bin directory on our server. Here's the code: ---------------------------------------------------------------------------- #include #include #include main() { cout << "Content-type: text/plain\n\n"; cout << "Trying to connect ..." << endl; char* dbName = "molinks"; PgEnv Env; Env.Host("peculiarweb.com"); // Env.Port(""); // Env.Auth(""); cout << "Env.Auth = " << Env.Auth() << endl; cout << "Env.Host = " << Env.Host() << endl; cout << "Env.Port = " << Env.Port() << endl; cout << "Env.Option = " << Env.Option() << endl; cout << "Env.TTY = " << Env.TTY() << endl; // Open the connection to the database and make sure it's OK PgDatabase data(Env, dbName); if ( data.ConnectionBad() ) { cout << "Connection was unsuccessful..." << endl << "Error message returned: " << data.ErrorMessage() << endl; return 1; } else cout << "Connection successful..." << endl; ---------------------------------------------------------------------------- When I try to run it as a CGI app from the web server, I get the following error: ---------------------------------------------------------------------------- Trying to connect ... Env.Auth = Env.Host = peculiarweb.com Env.Port = Env.Option = Env.TTY = Connection was unsuccessful... Error message returned: fe_setauthsvc: invalid name: , ignoring... ---------------------------------------------------------------------------- Anybody have any clue why this happens, or what it means? Better yet, anybody know how to fix it? ---------------------------------------------------------------------------- Belinda & Clint Forgy Midwest Online PeculiarWeb Internet Designs http://www.midwestonline.com http://www.peculiarweb.com