move remote ldap check to function check_remote_ldap()
move remote ldap check to function check_remote_ldap()

GluuFederation/community-edition-setup,GluuFederation/community-edition-setup,GluuFederation/community-edition-setup