Percona-pgbouncer 1.25 LDAP support

Hello,

I use Percona distribution for PostgreSQL with 18.1 version and installed packages from Percona Repo .

I found that pgbouncer-1.25-0 version supports LDAP authentification. So, I installed package percona-pgbouncer-1.25.0-1.el9.x86_64.rpm and have:

pgbouncer --version
PgBouncer 1.25.0

In couple ways I tried configure LDAP authentification in pgbouncer, for example:

auth_type = ldap

auth_ldap_options = ldapurl=“ldap://127.0.0.1:12345/dc=example,dc=net?uid?sub”

but it fails: FATAL: ldap is not supported by this build

Hmm.. it seems that LDAP authentication method is not supported, but I use PgBouncer 1.25.0. It should support LDAP.

Do you have any idea? How can I use LDAP authentication with percona-pgbouncer? Could you present any real example? Thanks in advance.

2 Likes

Hi neopolis

Welcome to the Percona forums. Yes, PgBouncer 1.25 includes LDAP support, if it is enabled by a compile-time flag. The build of PgBouncer included with the Percona packaging of Postgres 18.1 did not have that flag set, so does not include LDAP support. We will update the build process and ship PgBouncer with LDAP support in our next packaging cycle.

2 Likes

Hi, thanks for your answer and comment. It would be great to have Percona PgBouncer build with LDAP support. Is it possible to know, when will you have your next packaging cycle? Thanks.