@ConditionalOnMissingBean(name = "ldapPasswordSynchronizers")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public BeanContainer<AuthenticationPostProcessor> ldapPasswordSynchronizers(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(BeanContainer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val ldap = casProperties.getAuthn().getPasswordSync().getLdap();
                val processors = ldap.stream()
                    .filter(LdapPasswordSynchronizationProperties::isEnabled)
                    .map(properties -> {
                        val searchFactory = new LdapConnectionFactory(LdapUtils.newLdaptiveConnectionFactory(properties));
                        return new LdapPasswordSynchronizationAuthenticationPostProcessor(searchFactory, properties);
                    })
                    .collect(Collectors.toList());
                return BeanContainer.of(processors);
            })
            .otherwise(BeanContainer::empty)
            .get();
    }
This is {@link LdapPasswordSynchronizationConfiguration}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-ldap/src/main/java/org/apereo/cas/config/LdapPasswordSynchronizationConfiguration.java