Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWK6F-0007Zw-U2 for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 13:28:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWK6E-0007vQ-Q3 for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 13:28:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWK6E-0007vJ-I8 for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 13:28:34 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWK6B-0004UQ-QN for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 13:28:33 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0B4C35F7A2; Wed, 6 May 2020 09:28:29 -0400 (EDT) Date: Wed, 6 May 2020 09:28:28 -0400 From: Stephen Frost To: Geoff Winkless Cc: Tim Cross , "pgsql-generallists.postgresql.org" Subject: Re: Lock Postgres account after X number of failed logins? Message-ID: <20200506132828.GP13712@tamriel.snowman.net> References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d8eP7+1NKbMtLC+X" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --d8eP7+1NKbMtLC+X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Geoff Winkless (pgsqladmin@geoff.dj) wrote: > On Wed, 6 May 2020 at 00:05, Tim Cross wrote: > > Where Tom's solution fails is with smaller companies that cannot afford > > this level of infrastructure. >=20 > 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 --d8eP7+1NKbMtLC+X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJesrt8AAoJEO1sijiDR2RVKJYQAJwMF4DDJrB4+/eLH7WThht3 JloQ8xVwFKt0gCabwfH6tx2WZaShDr9R1UGc7eTLYY5YlVhOqM51bZ1WdtqwlJNF 8+IPAKzVPaEEHiefu0sG97mcDYtMzOT63OFqh26obtMN3t0Il4Syd/+FSt5AZx9s g7yE/KqAvpD0rVd1cfXI8fkUSD97Ug9PPMPmStjZzF67YpAymXZAPzfoyYMSPYhv ZrlbEu5Fxms94/66r/s5r6Tsoisqh7bWvV1uS2em0IJp4rKXCN+FX2ZezylMjKmy pGNhH4Z4BVmaERAyAJ3oqTuL0GN7r6+m97eZLxV5C9v98PunGl9P3LIPoknvSkz+ oDdaVmqHBUsYMj/HnxpP8NqQGTHMkDnk4mIDLRozexkuAEoj9GGWMHv2F7Mg076G VZ90ypJiosf1KZZ40CjUCsFbFZHmikdU+aJrX0ooU4PbdB/TDcG4fOr6arxKEk7O 9d2n4AbfbBClaCE9wZlNjFwPaeomOCby9ilXoAgdiOjb44gVsnuRg3rx/Ga08SXN yB5lyIEvCE6Rng0Uv9qgB1IN9mXFyUL06VMChKIYvVaqcgZuBlm/80F213Yv5dNh Xl/BhU9VgHlDRPSSfimMVPGN5WAWlNpTs+oELd/f9l+KzKkrqjYOhDEh8spT221e 5ANFi1nZhHKoOX463BRE =kNxq -----END PGP SIGNATURE----- --d8eP7+1NKbMtLC+X--