pgsql: Add DNS SRV support for LDAP server discovery.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add DNS SRV support for LDAP server discovery.
Date: 2019-03-21 02:33:49
Message-ID: E1h6nWf-0004Vw-9J@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add DNS SRV support for LDAP server discovery.

LDAP servers can be advertised on a network with RFC 2782 DNS SRV
records. The OpenLDAP command-line tools automatically try to find
servers that way, if no server name is provided by the user. Teach
PostgreSQL to do the same using OpenLDAP's support functions, when
building with OpenLDAP.

For now, we assume that HAVE_LDAP_INITIALIZE (an OpenLDAP extension
available since OpenLDAP 2.0 and also present in Apple LDAP) implies
that you also have ldap_domain2hostlist() (which arrived in the same
OpenLDAP version and is also present in Apple LDAP).

Author: Thomas Munro
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/CAEepm=2hAnSfhdsd6vXsM6VZVN0br-FbAZ-O+Swk18S5HkCP=A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0f086f84ad9041888b789af5871c7432f0e19c5b

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 21 +++++-
src/backend/libpq/auth.c | 152 +++++++++++++++++++++++++++++++-----------
src/backend/libpq/hba.c | 3 +
3 files changed, 135 insertions(+), 41 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-03-21 03:17:04 Re: pgsql: Make heap TID a tiebreaker nbtree index column.
Previous Message Peter Geoghegan 2019-03-20 23:39:20 Re: pgsql: Make heap TID a tiebreaker nbtree index column.