pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wolff, Ken L <ken.l.wolff@lmco.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Lock Postgres account after X number of failed logins?
Date: Tue, 5 May 2020 14:13:38 +0000
Message-ID: <61463e206b7c4c0ca17b03a59e890b78@lmco.com> (raw)

Hi, everyone.  Wondering if there's a way in PostgreSQL to automatically lock accounts after a number of failed logins (a security requirement for my organization).  I've been investigating this for a while and the only reference I've found is to write a hook:  https://wiki.postgresql.org/images/e/e3/Hooks_in_postgresql.pdf , which is a little more involved than I'd hoped.  Was hoping there was something native available within PostgreSQL.

Locking accounts after X number of failed logins is an excellent way to defeat brute force attacks, so I'm just wondering if there's a way to do this, other than the aforementioned hook.

This is my first time using this mail list so apologies in advance if I'm not following etiquette or doing something incorrectly.

Thanks in advance.


Ken W

view thread (20+ messages)  latest in thread

Message-ID: <61463e206b7c4c0ca17b03a59e890b78@lmco.com>
Permalink:  ../61463e206b7c4c0ca17b03a59e890b78@lmco.com/
Also on:    postgresql.org/message-id/61463e206b7c4c0ca17b03a59e890b78@lmco.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ken.l.wolff@lmco.com
  Subject: Re: Lock Postgres account after X number of failed logins?
  In-Reply-To: <61463e206b7c4c0ca17b03a59e890b78@lmco.com>
  References: <61463e206b7c4c0ca17b03a59e890b78@lmco.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