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 1jWLw8-0002lR-Mh for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 15:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWLw7-0004ri-Aw for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 15:26:15 +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 1jWLw7-0004rb-3I for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 15:26:15 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWLw3-0005SE-8L for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 15:26:14 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 153672F95; Wed, 6 May 2020 17:26:10 +0200 (CEST) Date: Wed, 6 May 2020 17:26:10 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Lock Postgres account after X number of failed logins? Message-ID: <20200506152610.GA12354@hjp.at> References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> <20200506132828.GP13712@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20200506132828.GP13712@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-05-06 09:28:28 -0400, Stephen Frost wrote: > 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. Still a lot better than PostgreSQL's md5 scheme, which stores password-equivalent hashes: If the database is compromised the attacker has all hashes immediately and can use them to login. Intercepting encrypted traffic even at the endpoint is much harder and can only uncover passwords actually used. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl6y1w0ACgkQ8g5IURL+ KF1Pzg//bAvx+ZEpN7So+PnkLnS1/UKJiYe4qn37RLeU9o8bCXfzpFLLsHzARcW4 UIldDOQNez3kC3HQiLISDZcMbNgUbz27QBimuJZ5hlnpjtzqwNyESlw8gMJEghvB x0sN+Acz4wxpWs4+O+Q7df4+VIrqu42anWLsdkt6Yps4W3SaBd1K/PqjbKuuOy8n rxzoWP56VfY8Wg5FwvjWDhHuqDXWDExfkNOenzpvxIedmLw8SL6yhmKpTtpyaKWw 9pe7Mj/FO3ahPjB3ocWqeiG+kLap0iO0PeO1GeCotQo5UhQQ4w50mRvXnD0YmbfB SpKHgCBqQzS9M89d5hvFpxjCYSEkYai+qudI3eG3ZhYlmUvXcPu0Vu4GWNHuMxrZ U9Pfv2CKew/C3OP4M+5JjqvcXHZByCJZURlwyPtQfbFFdmLO9b3Tmit99N5Oml6X g7TXSNtkvq5Ss1FgfEX5HZCbbrlG2EG9C7JDdhMp6zcdA/BqDhGZqfmxGZEyCuCS zH8WeRIWvIvbnk0koBZrf7nnrHK35LaBdCFWoNE9Pl/5LZZ0B77zdO6K5ZU7q2Kh m1LfH+sVRPkoZVirbyf1+Moitoy7uVtD8NjAPfR/xKn5+5Hy6b8jycuf+jr8Y8T3 KUP/pXdPWX2gljz2LuteAKjRqNKJjCuAF+hrzYAPwuYr9U+AYc8= =EZKo -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--