Fix handling of HBA ldapserver with multiple hostnames.

Thomas Munro <tmunro@postgresql.org>

Commit: 257ef3cd4fec7ca1213f31b660486b492b1c7031
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-11-13T04:46:28Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/libpq/auth.c modified +37 −5
src/test/ldap/t/001_auth.pl modified +17 −1

Discussion