Possibly fixed ldap connection testing.