Re: WIP: SCRAM authentication

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: WIP: SCRAM authentication
Дата
Msg-id 55C63B1E.2040101@iki.fi
обсуждение исходный текст
Ответ на Re: WIP: SCRAM authentication  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: WIP: SCRAM authentication  (Greg Stark <stark@mit.edu>)
Re: WIP: SCRAM authentication  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 08/08/2015 04:27 PM, Robert Haas wrote:
> I don't see that there's any good reason to allow the same password to
> be stored in the catalog encrypted more than one way,

Sure there is. If you want to be able to authenticate using different 
mechanism, you need the same password "encrypted" in different ways. 
SCRAM uses verifier that's derived from the password in one way, MD5 
authentication needs an MD5 hash, and yet other protocols have other 
requirements.

> and I don't think there's any good reason to introduce the PASSWORD
> VERIFIER terminology.  I think we should store (1) your password,
> either encrypted or unencrypted; and (2) the method used to encrypt
> it.  And that's it.

Like Joe and Stephen, I actually find it highly confusing that we call 
the MD5 hash an "encrypted password". The term "password verifier" is 
fairly common in the specifications of authentication mechanisms. I 
think we should adopt it.

- Heikki




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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Test code is worth the space
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: checkpointer continuous flushing