Re: Deactivate/disable User id in Postgres

Поиск
Список
Период
Сортировка
От Rui DeSousa
Тема Re: Deactivate/disable User id in Postgres
Дата
Msg-id C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net
обсуждение исходный текст
Ответ на Deactivate/disable User id in Postgres  (Rajin Raj <rajin.raj@opsveda.com>)
Ответы Re: Deactivate/disable User id in Postgres  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-admin


On May 4, 2020, at 7:29 AM, Rajin Raj <rajin.raj@opsveda.com> wrote:

Hi,

Is there any option to deactivate/disable a user id in Postgres?
I can think of below two options, 

ALTER USER <user_id> WITH CONNECTION LIMIT 0;
ALTER USER <user_id> WITH NOLOGIN

Is there any better approach? 

Regards,
Rajin 

Using external authentication is an option too. i.e. using LDAP; disabling the account in LDAP means the user cannot login.

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

Предыдущее
От: John Scalia
Дата:
Сообщение: Re: Deactivate/disable User id in Postgres
Следующее
От: Brian Hansen
Дата:
Сообщение: Error Message