Re: protocol, md5 authentication

Поиск
Список
Период
Сортировка
От Josh Close
Тема Re: protocol, md5 authentication
Дата
Msg-id 4a0cafe20602220853gc1da9a4gb91d8f3711cb4e50@mail.gmail.com
обсуждение исходный текст
Ответ на Re: protocol, md5 authentication  (James William Pye <pgsql@jwp.name>)
Ответы Re: protocol, md5 authentication  (James William Pye <pgsql@jwp.name>)
Список 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 = 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

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: protocol, md5 authentication
Следующее
От: Ibrahim Noorzaie
Дата:
Сообщение: unsubscribe