Re: [GENERAL] db_user_namespace, md5 and changing passwords

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] db_user_namespace, md5 and changing passwords
Дата
Msg-id 18900.1226588765@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] db_user_namespace, md5 and changing passwords  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> I am unsure of exactly where this thing hacks into the authentication
> stream, but is it really only MD5 that fails?

The problem with md5 is that the username is part of the encryption salt
for the stored password, so changing it breaks that --- the client will
hash the password with what it thinks the username is, but the stored
password in pg_authid is hashed with what the server thinks the username
is.

You might be right that some other auth methods have an issue too,
but md5 is the only one anyone's ever reported a problem with.  That
might or might not just represent lack of testing.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Suppress leap-second timezones in pg_timezone_names view?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Block-level CRC checks