Fixes #3275: use the pool of connection when you should
Merge pull request #6 from fanf/bug_3275/ldap_connection_exaustion

Fixes #3275: use the pool of connection when you should