From: Josh Close <narshe@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: protocol, md5 authentication
Date: Wed, 22 Feb 2006 10:53:45 -0600
Message-ID: <4a0cafe20602220853gc1da9a4gb91d8f3711cb4e50@mail.gmail.com> (raw)
In-Reply-To: <20060222163010.GA13550@lit.jwp.name>
References: <4a0cafe20602220622g77666533k7564b439e83ce55@mail.gmail.com>
<20060222163010.GA13550@lit.jwp.name>
>
> libpq implements it properly. I'd suggest looking at the client source.
Where would that be, in the postgres source? And what file? I'm really not
too familiar with C.
Also, I *think* I have this working correctly in my PQueue module, so if you
> don't mind a little Python:
>
> import md5
> pw = md5.new(self.password + self.keywords['user']).hexdigest()
> pw = 'md5' + md5.new (pw + authmsg.salt).hexdigest()
>
> self.password is the password given by the user.
> self.keywords['user'] is the user name.
> authmsg.salt is the salt given by the server.
Yeah, I love Python. That is actually the way I'm sending it also. I'm
connecting via .NET though. I'll have to double check some things.
-Josh
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: narshe@gmail.com
Subject: Re: protocol, md5 authentication
In-Reply-To: <4a0cafe20602220853gc1da9a4gb91d8f3711cb4e50@mail.gmail.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