pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Wolff, Ken L <ken.l.wolff@lmco.com>
Cc: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: Tim Cross <theophilusx@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
Date: Wed, 6 May 2020 09:43:49 -0400
Message-ID: <20200506134349.GQ13712@tamriel.snowman.net> (raw)
In-Reply-To: <72e6959cb2624cafb328ce3100046633@lmco.com>
References: <98e0c063111b424486fc4735a31e4fc0@lmco.com>
	<87h7wuj840.fsf@gmail.com>
	<CAEzk6fcdFV8atrrsDWRioitgj1cAobUDu1SdXhyofVPaxa9bfw@mail.gmail.com>
	<20200506132828.GP13712@tamriel.snowman.net>
	<72e6959cb2624cafb328ce3100046633@lmco.com>

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (2+ messages)

Message-ID: <20200506134349.GQ13712@tamriel.snowman.net>
Permalink:  ../20200506134349.GQ13712@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20200506134349.GQ13712@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, ken.l.wolff@lmco.com, pgsqladmin@geoff.dj, theophilusx@gmail.com
  Subject: Re: EXTERNAL: Re: Lock Postgres account after X number of failed logins?
  In-Reply-To: <20200506134349.GQ13712@tamriel.snowman.net>
  References: <98e0c063111b424486fc4735a31e4fc0@lmco.com> <87h7wuj840.fsf@gmail.com> <CAEzk6fcdFV8atrrsDWRioitgj1cAobUDu1SdXhyofVPaxa9bfw@mail.gmail.com> <20200506132828.GP13712@tamriel.snowman.net> <72e6959cb2624cafb328ce3100046633@lmco.com> <20200506134349.GQ13712@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox