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 1jVyL2-0007yx-C7 for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 14:14:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVyL0-0004yz-TM for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 14:14:22 +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 1jVyL0-0004ys-CO for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 14:14:22 +0000 Received: from mailfo01.lmco.com ([192.31.106.12]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVyKw-0005Ol-KK for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 14:14:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lmco.com; h=from : to : subject : date : message-id : content-type : mime-version; s=corpgw190711; bh=SurmLFiTzymnHxt3ZyDUQ++L93RBoz+rGXnJzzghuWo=; b=HxnNWb4m6wqfJ8hxBsBxXC8rNwmXfoZlW/U7/0vwDaEUDPvWB7RZh+9VmvM6YJLmQx2l pqjQIEAAEDuXUgK8HrDqlZGJu7JANfUuGZWMlVLvGSL/lqTGZVLsddrJHbQn6LnEWjV5 nIQcNdZjFADUymVam0YEt5Vu4IRP1D7mJhGgsoOXNFnEF6K03R0m6OxhRTUe7S7ZeXTC S5I8BJopnZowA9xidg4e05c18n4NoUE2sFycAzOpKyb9MlZroDH+u+uXmx0B7Ddixvw2 0Ykz7ByiTyN6mNLeYViOSPnR/okDZMPHP2LsQ34o/xWcQVzc4TjIvHSU0p95hc4zi390 uA== Received: from lmxpdend11w04.us.lmco.com (lmxpdend11w04.ems.lmco.com [172.23.20.75]) by mailfo01.lmco.com (8.16.0.22/8.16.0.22) with ESMTP id 045EEEn8029474 for ; Tue, 5 May 2020 14:14:14 GMT Received: from lmxpdend11w04.us.lmco.com (172.23.20.75) by lmxpdend11w04.us.lmco.com (172.23.20.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1466.3; Tue, 5 May 2020 08:13:38 -0600 Received: from lmxpdend11w04.us.lmco.com ([172.23.20.75]) by lmxpdend11w04.us.lmco.com ([172.23.20.75]) with mapi id 15.01.1466.003; Tue, 5 May 2020 08:13:38 -0600 From: "Wolff, Ken L" To: "pgsql-general@lists.postgresql.org" Subject: Lock Postgres account after X number of failed logins? Thread-Topic: Lock Postgres account after X number of failed logins? Thread-Index: AdYi5gtKrl6560X5QP+W8QpTC8681A== Date: Tue, 5 May 2020 14:13:38 +0000 Message-ID: <61463e206b7c4c0ca17b03a59e890b78@lmco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.20.19] Content-Type: multipart/alternative; boundary="_000_61463e206b7c4c0ca17b03a59e890b78lmcocom_" MIME-Version: 1.0 X-LM-Outbound: External 172.23.20.75 cntry=** g=30zh6pDNxUkgoX4aGMCAt4o0b92v2qON q=045EEEn8029474 m=1 X-LM-OSENDER: ken.l.wolff@lmco.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-05_08:2020-05-04,2020-05-05 signatures=0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_61463e206b7c4c0ca17b03a59e890b78lmcocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, everyone. Wondering if there's a way in PostgreSQL to automatically lo= ck accounts after a number of failed logins (a security requirement for my = organization). I've been investigating this for a while and the only refer= ence I've found is to write a hook: https://wiki.postgresql.org/images/e/e= 3/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 def= eat 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 n= ot following etiquette or doing something incorrectly. Thanks in advance. Ken W --_000_61463e206b7c4c0ca17b03a59e890b78lmcocom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, everyone. = Wondering if there’s a way in PostgreSQL to automatically lock accou= nts after a number of failed logins (a security requirement for my organiza= tion).  I’ve been investigating this for a while and the only reference I’ve found is to write a hook:  <= a href=3D"https://wiki.postgresql.org/images/e/e3/Hooks_in_postgresql.pdf">= https:/= /wiki.postgresql.org/images/e/e3/Hooks_in_postgresql.pdf , which is a little more involved than I&#= 8217;d hoped.  Was hoping there was something native available within = PostgreSQL.

 

Locking accounts af= ter X number of failed logins is an excellent way to defeat brute force att= acks, so I’m just wondering if there’s a way to do this, other = than the aforementioned hook.

 

This is my first ti= me using this mail list so apologies in advance if I’m not following = etiquette or doing something incorrectly.

 

Thanks in advance.<= o:p>

 

 

Ken W

--_000_61463e206b7c4c0ca17b03a59e890b78lmcocom_--