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: Stephen Frost <sfrost@snowman.net>
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: Tim Cross <theophilusx@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
Date: Wed, 6 May 2020 13:36:52 +0000
Message-ID: <72e6959cb2624cafb328ce3100046633@lmco.com> (raw)
In-Reply-To: <20200506132828.GP13712@tamriel.snowman.net>
References: <98e0c063111b424486fc4735a31e4fc0@lmco.com>
	<87h7wuj840.fsf@gmail.com>
	<CAEzk6fcdFV8atrrsDWRioitgj1cAobUDu1SdXhyofVPaxa9bfw@mail.gmail.com>
	<20200506132828.GP13712@tamriel.snowman.net>

Thanks again, everyone, for all the responses and ideas.  I'm still getting caught up on the various responses but with respect to LDAP/AD, I truly wish it were an option.  I agree with the various sentiments that AD authentication is more manageable, scalable, secure, etc.  However, if there were one set of environs where you'd think we could rely exclusively on AD authentication, it would be SQL Server, which by default, relies on Windows & AD for its authentication.  However, for our company, even in our SQL Server environments, we almost always have to resort to internal (SQL-authenticated) accounts at times for various reasons:  usually because vendor software doesn't support AD authentication, but I've even heard some people mention docker containers can't use it, either.  Full disclosure - I haven't run that last one down yet, have only heard it in passing so don't know the details.

Christian's idea of fail2ban looks interesting, so I'm going to be investigating that.  

Thanks again, all of you.  Really appreciate the feedback and ideas!


Ken

-----Original Message-----
From: Stephen Frost <sfrost@snowman.net> 
Sent: Wednesday, May 06, 2020 7:28 AM
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: Tim Cross <theophilusx@gmail.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: EXTERNAL: Re: Lock Postgres account after X number of failed logins?

Greetings,

* Geoff Winkless (pgsqladmin@geoff.dj) wrote:
> On Wed, 6 May 2020 at 00:05, Tim Cross <theophilusx@gmail.com> wrote:
> > Where Tom's solution fails is with smaller companies that cannot 
> > afford this level of infrastructure.
> 
> Is there an objection to openldap? It's lightweight (so could 
> reasonably be run on the same hardware without significant impact), 
> BSD-ish and mature, and (with the password policy overlay) should 
> provide exactly the functionality the OP requested.

LDAP-based authentication in PG involves passing the user's password to the database server in the clear (or tunneled through SSL, but that doesn't help if the DB is compromised), so it's really not a good solution.

Thanks,

Stephen





view thread (2+ messages)  latest in thread

Message-ID: <72e6959cb2624cafb328ce3100046633@lmco.com>
Permalink:  ../72e6959cb2624cafb328ce3100046633@lmco.com/
Also on:    postgresql.org/message-id/72e6959cb2624cafb328ce3100046633@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, sfrost@snowman.net, pgsqladmin@geoff.dj, theophilusx@gmail.com
  Subject: Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
  In-Reply-To: <72e6959cb2624cafb328ce3100046633@lmco.com>
  References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> <CAEzk6fcdFV8atrrsDWRioitgj1cAobUDu1SdXhyofVPaxa9bfw@mail.gmail.com> <20200506132828.GP13712@tamriel.snowman.net> <72e6959cb2624cafb328ce3100046633@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