Skip site navigation (1) Skip section navigation (2)

Re: protocol, md5 authentication

From: "Josh Close" <narshe(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: protocol, md5 authentication
Date: 2006-02-22 16:53:45
Message-ID: (view raw or whole thread)
Lists: pgsql-interfaces
> 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 = + self.keywords['user']).hexdigest()
>   pw = 'md5' + (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.


In response to


pgsql-interfaces by date

Next:From: Josh CloseDate: 2006-02-22 17:11:23
Subject: Re: protocol, md5 authentication
Previous:From: Tom LaneDate: 2006-02-22 16:48:55
Subject: Re: protocol, md5 authentication

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group