Re: Removing a user's password

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Removing a user's password
Дата
Msg-id 4307.1053974860@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Removing a user's password  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Removing a user's password  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> If you set VALID UNTIL to 'now' (or sometime in the past), you've
>> effectively prevented him from logging in with the password ---
>> more effectively than setting the password to NULL, since if the
>> user is still logged in he can just undo that.  I don't think we
>> really need to do anything more here.

> Well, can they undo the VALID UNTIL too?

No: a non-superuser can only set his password, not any other fields of
his pg_shadow entry.

> I think at a minimum we need
> to document the proper procedure for removing a password.  I see NULL as
> a more logical way of removing the password rather than playing with
> VALID UNTIL.

It may be more logical, but it doesn't work as well.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Changing behavior of BEGIN...sleep...do something...COMMIT
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Removing a user's password