From: Laurenz Albe <laurenz.albe@cybertec.at>
To: postbox giridhar <giridharpostbox@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Lock after several failed login attempts
Date: Wed, 10 Mar 2021 09:14:46 +0100
Message-ID: <8d7c07866ad29e48489d8bae07d519d455f95ccb.camel@cybertec.at> (raw)
In-Reply-To: <CALjFJF2TdnNZ3ZbFBV8Dn4BWdiJSn_zCoWw_82wUjbnHR6VSZg@mail.gmail.com>
References: <CALjFJF2TdnNZ3ZbFBV8Dn4BWdiJSn_zCoWw_82wUjbnHR6VSZg@mail.gmail.com>
On Tue, 2021-03-09 at 23:42 +0530, postbox giridhar wrote:
> Is it possible to lock a database user after several failed login attempts.
> Please suggest me.
The only thing built into PostgreSQL that does something in that direction
is auth_delay (https://www.postgresql.org/docs/current/auth-delay.html).
It introduces a pause after each failed login attempt, which makes
brute force attacks much harder.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, giridharpostbox@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Lock after several failed login attempts
In-Reply-To: <8d7c07866ad29e48489d8bae07d519d455f95ccb.camel@cybertec.at>
* 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