X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 329CAD1BBB1 for ; Mon, 17 Nov 2003 21:43:48 +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 58390-01 for ; Mon, 17 Nov 2003 17:43:17 -0400 (AST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id B7EDBD1B555 for ; Mon, 17 Nov 2003 17:43:12 -0400 (AST) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1ALr9N-000LT6-0Z; Mon, 17 Nov 2003 21:43:13 +0000 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.24) id 1ALr9H-0004Ta-H0; Mon, 17 Nov 2003 21:43:07 +0000 Subject: Re: fyi: possible security bug linking from MS Access From: Oliver Elphick To: Fred Parkinson Cc: pgsql-odbc@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: LFIX Limited Message-Id: <1069105357.16449.6.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 17 Nov 2003 21:42:37 +0000 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/91 X-Sequence-Number: 3493 On Mon, 2003-11-17 at 20:28, Fred Parkinson wrote: > I am using ms access (XP, aka 2002) to link to a postgres database with > odbc driver 7.02.00.05 and using the ms access facilities > File>Get external data>link tables>ODBC databases(). > > If I start my app the normal way I am asked to provide a postgres user > and password. > > However, if i start Access with the shift key down, so my startup form > doesn't open, delete my table links and relink, I am never asked for my > postgres user and password yet am successfully linked to the postgres > tables and my app behaves normally. I simply open the startup form and > I am in without needing the postgres user and password. It sounds as if the server is set to allow open access using "trust" authentication. The relevant file on the server is $PGDATA/pg_hba.conf; read the chapter on client authentication in the PostgreSQL manuals. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "For by grace are ye saved through faith; and that not of yourselves. It is the gift of God; not of works, lest any man should boast." Ephesians 2:8,9