Restructure Ldap TAP test
The code for detecting the Ldap installation and setting up a test
server is broken out into a reusable module that can be used for
additional tests to be added in later patches.
Discussion: https://postgr.es/m/
06005bfb-0fd7-9d08-e0e5-
440f277b73b4@dunslane.net