Issue 714.

Open ldap connection to support both pooled and non-pooled connection factories.
Merge pull request #714 from dfish3r/master

Merged fix for #714