config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java
private LdapAuthoritiesPopulator getLdapAuthoritiesPopulator() {
		if (ldapAuthoritiesPopulator != null) {
			return ldapAuthoritiesPopulator;
		}

		DefaultLdapAuthoritiesPopulator defaultAuthoritiesPopulator = new DefaultLdapAuthoritiesPopulator(
				contextSource, groupSearchBase);
		defaultAuthoritiesPopulator.setGroupRoleAttribute(groupRoleAttribute);
		defaultAuthoritiesPopulator.setGroupSearchFilter(groupSearchFilter);
		defaultAuthoritiesPopulator.setRolePrefix(this.rolePrefix);

		this.ldapAuthoritiesPopulator = defaultAuthoritiesPopulator;
		return defaultAuthoritiesPopulator;
	}
private LdapAuthoritiesPopulator getLdapAuthoritiesPopulator() {
		if (ldapAuthoritiesPopulator != null) {
			return ldapAuthoritiesPopulator;
		}

		DefaultLdapAuthoritiesPopulator defaultAuthoritiesPopulator = new DefaultLdapAuthoritiesPopulator(
				contextSource, groupSearchBase);
		defaultAuthoritiesPopulator.setGroupRoleAttribute(groupRoleAttribute);
		defaultAuthoritiesPopulator.setGroupSearchFilter(groupSearchFilter);
		defaultAuthoritiesPopulator.setRolePrefix(this.rolePrefix);

		this.ldapAuthoritiesPopulator = defaultAuthoritiesPopulator;
		return defaultAuthoritiesPopulator;
	}
Gets the {@link LdapAuthoritiesPopulator} and defaults to
{@link DefaultLdapAuthoritiesPopulator}

@return the {@link LdapAuthoritiesPopulator}