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 8D619D1D179 for ; Thu, 29 Jan 2004 21:33:37 +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 27922-06 for ; Thu, 29 Jan 2004 17:33:07 -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 22FD4D1CA92 for ; Thu, 29 Jan 2004 17:33:05 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1AmJmc-000Kgj-0Z; Thu, 29 Jan 2004 21:33:06 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 0893F16E71; Thu, 29 Jan 2004 21:33:04 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 12C3616ABD; Thu, 29 Jan 2004 21:33:03 +0000 (GMT) From: Richard Huxton To: "Bing Du" , pgsql-odbc@postgresql.org Subject: Re: catch password on Postgres server Date: Thu, 29 Jan 2004 21:33:02 +0000 User-Agent: KMail/1.5 References: <1873.129.186.197.127.1075405363.squirrel@mail.eng.iastate.edu> In-Reply-To: <1873.129.186.197.127.1075405363.squirrel@mail.eng.iastate.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401292133.02310.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/112 X-Sequence-Number: 3741 On Thursday 29 January 2004 19:42, Bing Du wrote: > Greetings, > > Postgres 7.4 running on RedHat 9. > > We are trying to migrate a MS SQL server based comertial application > software to a Postgres database. We know what password that application > uses to connect to the MS SQL database. > Is there anyway on the server side to > see what was submitted in the password field by the application from the > client side? Don't think you can get to the password without changing the code. I can think of two options: 1. In src/backend/libpq/auth.c search for "echo password to logs" and change the ereport() to log the password rather than not to. Reply to this if C isn't your thing. 2. Use tcpdump -s 255 port 5432 and see what's going over the wire. You'd need to set plaintext passwords though. Before any of this though, make sure you can connect from Access using that password. -- Richard Huxton Archonet Ltd