protocol, md5 authentication - Mailing list pgsql-interfaces

From Josh Close
Subject protocol, md5 authentication
Date
Msg-id 4a0cafe20602220622g77666533k7564b439e83ce55@mail.gmail.com
Whole thread Raw
Responses Re: protocol, md5 authentication
Re: protocol, md5 authentication
List pgsql-interfaces
I can't seem to get the md5 authentication to work with the postgres protocol version 3.<br /><br />The docs don't
reallysay how to send an authenticated password, just that you need to use the returned salt from the md5
authenticationrequest. <br /><br />I've read somewhere that it needs to work like this:<br /><br />1. Combine password
+user.<br />2. MD5 hash the result.<br />3. Add the salt to the end of that.<br />4. Hash the result.<br />5. Add "md5"
tothe front of this, so postgres knows it's md5. <br /><br />This hasn't worked for me.<br /><br />What is the correct
wayof MD5 authenticating?<br /><br />-Josh<br /> 

pgsql-interfaces by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Finding the pqlib version
Next
From: Tom Lane
Date:
Subject: Re: Finding the pqlib version