]> granicus.if.org Git - postgresql/commit
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:47:00 +0000 (17:47 +1300)
commit6b6c64a96dea5492448aa98cf24eca9325e80371
tree414ad66be748759b6d864c55d8a1a38739cbc2a0
parent726ca18f94e10c11f8dd3774eb56e76a82729f40
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