config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java
private PasswordComparisonAuthenticator createPasswordCompareAuthenticator(
			BaseLdapPathContextSource contextSource) {
		PasswordComparisonAuthenticator ldapAuthenticator = new PasswordComparisonAuthenticator(
				contextSource);
		if (passwordAttribute != null) {
			ldapAuthenticator.setPasswordAttributeName(passwordAttribute);
		}
		ldapAuthenticator.setPasswordEncoder(passwordEncoder);
		return ldapAuthenticator;
	}
private PasswordComparisonAuthenticator createPasswordCompareAuthenticator(
			BaseLdapPathContextSource contextSource) {
		PasswordComparisonAuthenticator ldapAuthenticator = new PasswordComparisonAuthenticator(
				contextSource);
		if (passwordAttribute != null) {
			ldapAuthenticator.setPasswordAttributeName(passwordAttribute);
		}
		ldapAuthenticator.setPasswordEncoder(passwordEncoder);
		return ldapAuthenticator;
	}
Creates {@link PasswordComparisonAuthenticator}

@param contextSource the {@link BaseLdapPathContextSource} to use
@return