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 1jWJ3b-0005eo-AW for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 12:21:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWJ3Z-00009K-3N for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 12:21:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWJ3Y-00009D-SH for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 12:21:44 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWJ3S-0001kS-KX for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 12:21:43 +0000 Received: by mail-pf1-x42f.google.com with SMTP id 145so904522pfw.13 for ; Wed, 06 May 2020 05:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=lBQvDYtHV+eJ+SJWGmw6RuSow1DUBeqZ+Edo+YwZlRU=; b=kuxiA6IXiQ2XcOQxyq7TG0ub2/V4hYEucQF5sfUE2P8qv2z/Yz1wCV1zyQNwNtP2Sm P9gmCrMhJSx6uH/X2xseHbnZKTlFfu/Dt0RHLh1XPh3/8TALLceVgCcBxDDnSSlHsni8 eHfURY613qiiguopPNAsZ2nryRpATVIQ/J3E/CuGCL+Ua/tmoclFJ6oO39jH5OWgFO2A 4v8v/9rk4uU4TqVmiOIQ9sD5R5+FhdFJS091esamHzYxopyTyBygxhq4RBRz5Yenbbmr wAjN5js3rUN9Q2SubKLhMVsqX8H4dAtnACZpMWH1Pzms7atnVL6B+1vIgEGoBbZ9ZscG sAyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=lBQvDYtHV+eJ+SJWGmw6RuSow1DUBeqZ+Edo+YwZlRU=; b=X65IJEvZF2XDsBPBcBPagVH6Z33C+PtPhVUiOtMl8lZgE/JCWgzJ2GKo3U5ycDF64V xgqnrnvAyHJjVuRxbZilSvbrWEOqCvW3yfk8ihZWwhld3szpQBCfOgYpzFGki87QjRN9 cGuvzocrGbb5o+zw24uh+jdAgpIszlxdJ3pBp9aD7WW7CgqUINI45FL8pSoh1WEsFyqk jdnS5j9TiT6CaK02pwlPH/QIwqKPrYUOC+LeXR0aKa/vaswqWhlQbyDAph0sIWKlpp3E QOUrOIextOsasa/BliQD9AIHY2p3MhOG4ekfi8MouCETUKb4kAc6lNKV3qz42eCTp5fE qizw== X-Gm-Message-State: AGi0PuYASLW4jLubD7ekL/CqhKke89RNHokTzWD2Sr4kLT8M+FhRei93 TlxtfTNV3ZJvxEy+q2L05FQVepx3 X-Google-Smtp-Source: APiQypJxlFo63GZCui7rWlOh3NUzqMJ3UFrMYa0IkxDDEIB43REq/ciTf/Gg5Q/l4aDm64NbCZZ/Bg== X-Received: by 2002:a63:e210:: with SMTP id q16mr6687485pgh.26.1588767696977; Wed, 06 May 2020 05:21:36 -0700 (PDT) Received: from tim-desktop (203-173-19-35.dyn.iinet.net.au. [203.173.19.35]) by smtp.gmail.com with ESMTPSA id b67sm1739615pfg.60.2020.05.06.05.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 05:21:36 -0700 (PDT) References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> User-agent: mu4e 1.4.4; emacs 27.0.91 From: Tim Cross To: Geoff Winkless Cc: "pgsql-generallists.postgresql.org" Subject: Re: Lock Postgres account after X number of failed logins? In-reply-to: Message-ID: <878si5jltf.fsf@gmail.com> Date: Wed, 06 May 2020 22:21:32 +1000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Geoff Winkless writes: > 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. > > 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. > OpenLDAP is certainly the way I would go. However, for a number of reasons, smaller companies seem somewhat resistant to that level of integration. I suspect it is primarily because LDAP skills are less prevalent amongst admins in these areas. Often, these companies don't really have a planned architecture - things have grown organically and got to the point where existing resources are fully allocated just trying to keep all the bits running. It can be hard to sell the idea, especially as those making the decisions are not across the issues and from where they sit, it all looks to be working and your asking for more resources when it doesn't seem to be broken. The IT guys often fail to sell the benefits because they focus on the technical aspects rather than on the business aspects. One client I helped had admins who had been trying to move everything over to a centralised LDAP solution for ages and failing. They had presented great justification for why it was needed, but it focused on the technical benefits rather than the business continuity, process improvement and security benefits. Once we put together a new business case which focused on improved processes for managing access, reduced security audit costs and improved security controls, they were sold and made the project a priority. Based on additional info I saw from the OP and plans to roll out many databases, I think a centralised directory service approach is really their only saleable and maintainable solution. In fact, they probably need to look at their overall identity management architecture. Failure to get that basic service correct will result in major support issue blow out as they increase their customer base. -- Tim Cross