public static boolean isLdapConnectionUrl(final URL r) {
        return r.getProtocol().equalsIgnoreCase(LDAP_PREFIX);
    }
Is ldap connection url?.

@param r the resource
@return true/false
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapUtils.java