Re: Deactivate/disable User id in Postgres

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Deactivate/disable User id in Postgres
Date: 2020-05-10 12:24:28
Message-ID: 74156874-be59-bcf9-b8c9-a7bd85b9a53e@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 5/4/20 9:45 AM, Rui DeSousa wrote:
>
>
>> On May 4, 2020, at 7:29 AM, Rajin Raj <rajin(dot)raj(at)opsveda(dot)com
>> <mailto:rajin(dot)raj(at)opsveda(dot)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.

That would be a disaster in an enterprise that has many systems, and uses
LDAP/AD for account management.

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2020-05-10 12:26:35 Re: Deactivate/disable User id in Postgres
Previous Message Ankush Chawla 2020-05-08 12:25:04 Re: postgresql Installation failed Error changing group of /opt/PostgreSQL to daemon