Update LDAP Protocol in fe-connect.c to v3
Andrew Jackson <andrewjackson947@gmail.com>
From: Andrew Jackson <andrewjackson947@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-03-22T21:10:28Z
Lists: pgsql-hackers
Currently the LDAP usage in fe-connect.c does not explicitly set the protocol version to v3. This causes issues with many LDAP servers as they will often require clients to use the v3 protocol and disallow any use of the v2 protocol. Further the other usage of LDAP in postgres (in `backend/libpq/auth.c`) uses the v3 protocol. This patch changes fe-connect.c so that it uses the v3 protocol similar to `backend/libpq/auth.c`. One further note is that I do not currently see any test coverage over the LDAP functionality in `fe-connect.c`. I am happy to add that to this patch if needed.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add TAP tests for LDAP connection parameter lookup
- 8212c8393906 19 (unreleased) landed
-
libpq: Set LDAP protocol version 3
- 5f19d13dfed3 19 (unreleased) landed