pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Bing Du <bdu@iastate.edu>
To: pgsql-odbc@postgresql.org
Subject: Re: catch password on Postgres server
Date: Thu, 29 Jan 2004 21:33:02 +0000
Message-ID: <200401292133.02310.dev@archonet.com> (raw)
In-Reply-To: <1873.129.186.197.127.1075405363.squirrel@mail.eng.iastate.edu>
References: <1873.129.186.197.127.1075405363.squirrel@mail.eng.iastate.edu>

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



view thread (5+ messages)  latest in thread

Message-ID: <200401292133.02310.dev@archonet.com>
Permalink:  ../200401292133.02310.dev@archonet.com/
Also on:    postgresql.org/message-id/200401292133.02310.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: dev@archonet.com, bdu@iastate.edu
  Subject: Re: catch password on Postgres server
  In-Reply-To: <200401292133.02310.dev@archonet.com>
  References: <1873.129.186.197.127.1075405363.squirrel@mail.eng.iastate.edu> <200401292133.02310.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox