Get ldap if edirectory is available.