From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow ldaps when using ldap authentication
Date: Wed, 03 Jan 2018 15:14:24 +0000
Message-ID: <E1eWkkK-00083z-1r@gemulon.postgresql.org> (raw)
Allow ldaps when using ldap authentication
While ldaptls=1 provides an RFC 4513 conforming way to do LDAP
authentication with TLS encryption, there was an earlier de facto
standard way to do LDAP over SSL called LDAPS. Even though it's not
enshrined in a standard, it's still widely used and sometimes required
by organizations' network policies. There seems to be no reason not to
support it when available in the client library. Therefore, add support
when using OpenLDAP 2.4+ or Windows. It can be configured with
ldapscheme=ldaps or ldapurl=ldaps://...
Add tests for both ways of requesting LDAPS and a test for the
pre-existing ldaptls=1. Modify the 001_auth.pl test for "diagnostic
messages", which was previously relying on the server rejecting
ldaptls=1.
Author: Thomas Munro
Reviewed-By: Peter Eisentraut
Discussion: https://postgr.es/m/CAEepm=1s+pA-LZUjQ-9GQz0Z4rX_eK=DFXAF1nBQ+ROPimuOYQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/35c0754fadca8010955f6b10cb47af00bdbe1286
Modified Files
--------------
configure | 11 ++++++++
configure.in | 1 +
doc/src/sgml/client-auth.sgml | 50 ++++++++++++++++++++++++++---------
src/backend/libpq/auth.c | 59 ++++++++++++++++++++++++++++++++++++-----
src/backend/libpq/hba.c | 16 +++++++++++-
src/include/libpq/hba.h | 1 +
src/include/pg_config.h.in | 3 +++
src/test/ldap/t/001_auth.pl | 61 ++++++++++++++++++++++++++++++++++++++++---
8 files changed, 178 insertions(+), 24 deletions(-)
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_e@gmx.net
Subject: Re: pgsql: Allow ldaps when using ldap authentication
In-Reply-To: <E1eWkkK-00083z-1r@gemulon.postgresql.org>
References: <E1eWkkK-00083z-1r@gemulon.postgresql.org>
* 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