Fixed to get only the URL address instead of the full LDAP URL for connection.