Fix handling of HBA ldapserver with multiple hostnames.
authorThomas Munro <tmunro@postgresql.org>
Tue, 13 Nov 2018 04:39:36 +0000 (17:39 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 13 Nov 2018 04:46:28 +0000 (17:46 +1300)
commit257ef3cd4fec7ca1213f31b660486b492b1c7031
tree74d5537fc7d0fe86bcf267901ee2ffff14c111a5
parent6a3dcd28568a04b6e4aea2bf41ea2c7e9c7b0e96
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
src/backend/libpq/auth.c
src/test/ldap/t/001_auth.pl