pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Chris Stephens <cstephens16@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: troubleshooting postgresql ldap authentication
Date: Tue, 9 Jun 2020 08:29:44 -0400
Message-ID: <20200609122944.GB6680@tamriel.snowman.net> (raw)
In-Reply-To: <CAEFL0syuOqwZj6jFiOERRw8Vk3sbBCMuakCrLYSi8enj0rnwQA@mail.gmail.com>
References: <CAEFL0swMzqaYZUYLGVa2H9=nqTomVBedRNac=_oAjgdw9PNSvw@mail.gmail.com>
	<CA+hUKGJh_Vch9oSJs-MrObN+TCcyWxvF1PcgHn2n1hqUWo3gjQ@mail.gmail.com>
	<CAEFL0syuOqwZj6jFiOERRw8Vk3sbBCMuakCrLYSi8enj0rnwQA@mail.gmail.com>

Greetings,

* Chris Stephens (cstephens16@gmail.com) wrote:
> yes, shortly after i sent this out to the list, one of our security
> administrators suggested ldapscheme.  I just tested and ldapurl works as
> well.
> 
> the security admin explained it like this:
> 
> "since we are using port 636 I know that it needs the TLS connection in
> place before LDAP commands. starttls does the opposite.  allows an LDAP
> connection to "upgrade" to TLS.  so the previous errors were simply it
> unable to connect to server."
> 
> i'm guessing information like that doesn't belong in postgresql
> documentation but it would have been useful yesterday. :)

Might be interesting to know if the security administrator also
understands that the way ldap-based auth works (at least in PG) is that
the user's password is sent to the PG server where it could potentially
be hijacked if the PG server is compromised..

If you're in an active directory environment, you really should be using
the 'gss' method instead, which is Kerberos underneath and avoids that
issue.

> thanks for the response! i just recently made the switch to postgresql
> after 20 years of mainly Oracle. during that time, the oracle-l mailing
> list was invaluable as a learning tool and as a way to get help
> when needed. it's great to know there's a similar mailing list in the
> postgresql community!

You're certainly welcome here!  One thing to mention is that, as you may
have noticed, we communicate on these lists by responding in-line rather
than 'top-posting', since it makes things easier for everyone else on
the list to follow.

Thanks, and welcome!

Stephen

Attachments:

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

view thread (5+ messages)

Message-ID: <20200609122944.GB6680@tamriel.snowman.net>
Permalink:  ../20200609122944.GB6680@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20200609122944.GB6680@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, cstephens16@gmail.com, thomas.munro@gmail.com
  Subject: Re: troubleshooting postgresql ldap authentication
  In-Reply-To: <20200609122944.GB6680@tamriel.snowman.net>
  References: <CAEFL0swMzqaYZUYLGVa2H9=nqTomVBedRNac=_oAjgdw9PNSvw@mail.gmail.com> <CA+hUKGJh_Vch9oSJs-MrObN+TCcyWxvF1PcgHn2n1hqUWo3gjQ@mail.gmail.com> <CAEFL0syuOqwZj6jFiOERRw8Vk3sbBCMuakCrLYSi8enj0rnwQA@mail.gmail.com> <20200609122944.GB6680@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