pgsql: Fix handling of HBA ldapserver with multiple hostnames. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Fix handling of HBA ldapserver with multiple hostnames.
Date
Msg-id E1gMQf3-0007lZ-Lj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix handling of HBA ldapserver with multiple hostnames.

Commit 35c0754f failed to handle space-separated lists of alternative
hostnames in ldapserver, when building a URI for ldap_initialize()
(OpenLDAP).  Such lists need to be expanded to space-separated URIs.

Repair.  Back-patch to 11, to fix bug report #15495.

Author: Thomas Munro
Reported-by: Renaud Navarro
Discussion: https://postgr.es/m/15495-2c39fc196c95cd72%40postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6b6c64a96dea5492448aa98cf24eca9325e80371

Modified Files
--------------
src/backend/libpq/auth.c    | 42 +++++++++++++++++++++++++++++++++++++-----
src/test/ldap/t/001_auth.pl | 18 +++++++++++++++++-
2 files changed, 54 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix handling of HBA ldapserver with multiple hostnames.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.