0

I have PostgreSQL 8.4 configured to authenticate database users by performing a LDAP bind, as described in http://www.postgresql.org/docs/8.4/static/auth-methods.html#AUTH-LDAP. It works. However, for each login, it makes a new LDAP connection, sets up SSL, binds, and tears it down immediately afterwards. This is somewhat wasteful.

Is there any way of pooling these LDAP connections so that each database login only performs a bind, not an entire connection setup and teardown?

0

I would suggest using PAM to authenticate, and configuring PAM to use LDAP? I think that the PAM LDAP auth module does the connection pooling you're referring to.

  • Hmm, maybe, except database users aren't system users. – Anonymoose May 12 '11 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.