Re: Question on MD5 authentication - Mailing list pgsql-general

From Wei Weng
Subject Re: Question on MD5 authentication
Date
Msg-id 1160685539.28475.24.camel@localhost.localdomain
Whole thread Raw
In response to Re: Question on MD5 authentication  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Question on MD5 authentication
List pgsql-general
I think I have found out something suspicious.

I used tcpdump to monitor the traffic to and from port 5432, and it
seems that the password the client on A sends out to the postmaster on B
is

"md54570471eccef21ae3c6e43033d8d2f66"

While the MD5-ed password stored in system catalog (pg_shadow) is

"md5c573460a3b356e4610bfae406e1d8a9f"

And a MD5 string generated by md5 function in postgresql is:

template1=# select md5('test_passwd');
               md5
----------------------------------
 daac2bc8c6fe94375b59efb7b3effd33
(1 row)

(As you can see, all 3 strings are different)


Why the difference?  Is there something missing ??

Thanks


Wei




pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Windows install problem (was: Postgre 8.0 Installation - Issues)
Next
From: "Merlin Moncure"
Date:
Subject: Re: Windows install problem (was: Postgre 8.0 Installation - Issues)