From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Deactivate/disable User id in Postgres
Date: Sun, 10 May 2020 07:24:28 -0500
Message-ID: <74156874-be59-bcf9-b8c9-a7bd85b9a53e@gmail.com> (raw)
In-Reply-To: <C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net>
References: <CAOasRJb7gKDZMjfVAmh2Bg4hGfm_=qoE8LvJimhY7mATbN=pmA@mail.gmail.com>
<C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net>
On 5/4/20 9:45 AM, Rui DeSousa wrote:
>
>
>> On May 4, 2020, at 7:29 AM, Rajin Raj <rajin.raj@opsveda.com
>> <mailto: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.
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Deactivate/disable User id in Postgres
In-Reply-To: <74156874-be59-bcf9-b8c9-a7bd85b9a53e@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox