pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Praneel Devisetty <devisettypraneel@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: User to get locked after three wrong login attempts.
Date: Wed, 5 Sep 2018 13:48:32 -0400
Message-ID: <20180905174832.GO4184@tamriel.snowman.net> (raw)
In-Reply-To: <30655.1536069964@sss.pgh.pa.us>
References: <CAHnVB4C9tSJkD4Ysd645HJmJjWzNYKJgUumE74YY8FRjUFJE4g@mail.gmail.com>
	<30655.1536069964@sss.pgh.pa.us>

Greetings,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Praneel Devisetty <devisettypraneel@gmail.com> writes:
> > We have a requirement , where we require a user to get locked after three
> > wrong login attempts.
> 
> The usual recommendation is to configure Postgres to use PAM
> authentication; then you can set up any weird requirements like
> this one in the PAM configuration.

Unfortunately, it's a pain to set up PAM and there's a lot of things in
the PAM stack which can't be used because PostgreSQL doesn't run as
root.  We should really have a better solution to this pretty commonly
asked for capability; I'm hoping to find time soon to hack on that.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (9+ messages)  latest in thread

Message-ID: <20180905174832.GO4184@tamriel.snowman.net>
Permalink:  ../20180905174832.GO4184@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180905174832.GO4184@tamriel.snowman.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, devisettypraneel@gmail.com
  Subject: Re: User to get locked after three wrong login attempts.
  In-Reply-To: <20180905174832.GO4184@tamriel.snowman.net>

* 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