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 1jWKL3-00084N-HI for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 13:43:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWKL2-00064S-EJ for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 13:43:52 +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 1jWKL2-00062J-5m for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 13:43:52 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWKKz-0002Q0-Vn for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 13:43:51 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6A5A95F7A0; Wed, 6 May 2020 09:43:49 -0400 (EDT) Date: Wed, 6 May 2020 09:43:49 -0400 From: Stephen Frost To: "Wolff, Ken L" Cc: Geoff Winkless , Tim Cross , "pgsql-generallists.postgresql.org" Subject: Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins? Message-ID: <20200506134349.GQ13712@tamriel.snowman.net> References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> <20200506132828.GP13712@tamriel.snowman.net> <72e6959cb2624cafb328ce3100046633@lmco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nGeV9mZmKmnx0ctX" Content-Disposition: inline In-Reply-To: <72e6959cb2624cafb328ce3100046633@lmco.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --nGeV9mZmKmnx0ctX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Wolff, Ken L (ken.l.wolff@lmco.com) wrote: > 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. At least as it involves vendor software, most of that is built on top of libpq or JDBC and you can typically make them work with GSSAPI (which is basically Kerberos, and is what AD/SQL Server uses), which is what you want to be using. Don't think the "ldap" auth in PG is like SQL Server AD auth- it isn't, and "ldap" involves passing user's passwords around in the clear, it's not secure. So, you might not have as much need for local accounts as you do for SQL server, but it's certainly possible you'll end up needing them somewhere. And yes, you can certainly get GSSAPI/Kerberos to work in docker and in Kube, it's just more complicated due to sorting through DNS/rDNS and such, but it's been done (and I've done it :). Thanks! Stephen --nGeV9mZmKmnx0ctX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJesr8UAAoJEO1sijiDR2RVshcP+wdj9dwzKv4VyTa4K1cO7a4t 1QVrfUaCzJc36+5YsL2YcPDrRUUp+hqgSuC0VRBDkrfuLrnjlfAE6zntyiujl8n3 TTTwl7L8IRC3VnUTbkhfk11++GowTHjG6o1sKqPM9877px2Gqa8BCFgSYbCTWSby M28TTRptw1+tLTvxid8+ZQ/O5YLlynknRrXNuO78kG18a4xugGaTkKeiP2QNEVEh VY49ykU6RCa+oJwrNh5eASENuulxNQmXnNoePgecXqdqwXYivP8w9Jgyp+41wyBz bh/6aHlwVoqeJGhixMbOcFQBSjaiLMioyv3SqmEGLTWYGx/x1fjQ+eYVvyhuzTLm pDvpgYBSujo+AbQxgbSNta+zXHupMco3lUcSM7It7+hkRXkLfEnkDRkRS0ha72Tw yAoZ1jjIvcyypK9VDONa+LUENcQRKcZLRgG6guMQDbqjuWYD2craACABC/g5yPyL MbXRgN3lTul8u0zNvMhcPdaoKFqfK2qGwF71WDi9VGmrjvBbiOgirGXyFGqjEtNV vl7lDYDJcNAQZJGBZb6VBqYJZiyi1EjNqw+VFgNG6JHetCI78YbL39DIcp5ckUtw IdUMa/CIsJ+IwPUslonTkTammVv3urZ4kT5vyEPegMz3CvQtBCxQ5+GmYZldh10Y WZbQ76Z+PTHFyGOrT43m =sZ3/ -----END PGP SIGNATURE----- --nGeV9mZmKmnx0ctX--