Re: query to show locked / disabled users? - Mailing list pgsql-admin

From Tom Lane
Subject Re: query to show locked / disabled users?
Date
Msg-id 1537964.1649964882@sss.pgh.pa.us
Whole thread Raw
In response to Re: query to show locked / disabled users?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: query to show locked / disabled users?  (Sbob <sbob@quadratum-braccas.com>)
List pgsql-admin
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thursday, April 14, 2022, Sbob <sbob@quadratum-braccas.com> wrote:
>> I have a client that says there were break in attempts and many db users
>> are now disabled / locked because of too many wrong pw attempts. Is there
>> a select that will show these users?

>  You can look at pg_roles.

That probably won't help much, because Postgres has no built-in
mechanism for disabling users on the basis of "too many wrong pw
attempts".  Whatever has decided that must be external to Postgres
(perhaps getting accessed via LDAP or PAM?) and you're going to have
to look at its state.  In short, there's not enough info here for
us to offer any useful advice.

            regards, tom lane



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: query to show locked / disabled users?
Next
From: Sbob
Date:
Subject: Re: query to show locked / disabled users?