@Override
        public LdapEntry resolve(final AuthenticationCriteria criteria, final AuthenticationHandlerResponse response) {
            return resolvers.stream()
                .map(resolver -> FunctionUtils.doAndHandle(
                        () -> resolver.resolve(criteria, response),
                        throwable -> {
                            LoggingUtils.warn(LOGGER, throwable);
                            return null;
                        })
                    .get())
                .filter(Objects::nonNull)
                .findFirst()
                .orElse(null);
        }
Create ldap authentication handler.

@param props              the ldap authentication properties
@param applicationContext the application context
@param servicesManager    the services manager
@param principalFactory   the principal factory
@return the ldap authentication handler
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapUtils.java