private static SearchControls getSearchControls(final String[] attrIDs) {
        val ctls = new SearchControls();
        ctls.setDerefLinkFlag(true);
        ctls.setTimeLimit(TIMEOUT);
        ctls.setReturningAttributes(attrIDs);
        ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
        return ctls;
    }
Validate endpoint.

@param url            the url
@param bindDn         the bind dn
@param bindCredential the bind credential
@param baseDn         the base dn
@param searchFilter   the search filter
@param userPassword   the user password
@param userAttributes the user attributes
@return true/false
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/util/ValidateLdapConnectionCommand.java