pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Allow ldaps when using ldap authentication
Date: Thu, 4 Jan 2018 10:53:20 -0500
Message-ID: <c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com> (raw)
In-Reply-To: <CAEepm=2=wnbjVtARnO0513w0rW9FWS7yZ3ZNz6VYTr4-j-aSAQ@mail.gmail.com>
References: <E1eWkkK-00083z-1r@gemulon.postgresql.org>
	<CAEepm=23B7GV4AUz3MYH1TKpTv030VHxD2Sn+LYWDv8d-qWxww@mail.gmail.com>
	<CAEepm=2=wnbjVtARnO0513w0rW9FWS7yZ3ZNz6VYTr4-j-aSAQ@mail.gmail.com>

On 1/3/18 16:24, Thomas Munro wrote:
> Windows documentation talks about LDAP_SSL_PORT instead.  I assume
> that "Vista Ultimate 6.0.6000 MSVC 2005 Pro 8.0.50727.867" doesn't
> define LDAPS_PORT, but some later version added it for compatibility
> with OpenLDAP.  Let's just define it ourselves if it's undefined as we
> did for some other LDAP macros, since its value is well known (it's an
> IANA-registered port).  See attached.
> 
> While poking around in the documentation, I came across this
> surprising sentence[1]: "Be aware that even if the secure parameter is
> set to zero, if the PortNumber parameter is set to LDAP_SSL_PORT (636)
> or to LDAP_SSL_GC_PORT (3269), an encrypted session is initiated."
> Huh.  That wasn't mentioned on the main  page for the function[2] and
> I don't like it, because it means that the same connection string
> could have a different meaning on Windows and Unix.  So I also propose
> that we also tweak the code to prevent that.

pushed

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)

Message-ID: <c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com>
Permalink:  ../c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com/
Also on:    postgresql.org/message-id/c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com

 · 

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-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, thomas.munro@enterprisedb.com
  Subject: Re: pgsql: Allow ldaps when using ldap authentication
  In-Reply-To: <c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com>
  References: <E1eWkkK-00083z-1r@gemulon.postgresql.org> <CAEepm=23B7GV4AUz3MYH1TKpTv030VHxD2Sn+LYWDv8d-qWxww@mail.gmail.com> <CAEepm=2=wnbjVtARnO0513w0rW9FWS7yZ3ZNz6VYTr4-j-aSAQ@mail.gmail.com> <c83dd869-1ecb-11d9-9a65-68792043ad68@2ndquadrant.com>

* 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