After the LDAP code was switched to use ldap_initialize() as part of the
ldaps support, ldapi (LDAP over Unix-domain sockets) also works. I
noticed an old bug report (#13625) that asked for it. So I suggest this
patch to document this and add some tests.
One flaw is that this only works when using the URL syntax. Providing a
separate option would require coding URL escaping, since ultimately an
URL must be composed and passed to ldap_initialize(). But since
OpenLDAP apparently now considers URLs to be the preferred form for
connection parameters, I'm comfortable just sticking to that format.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services