code: @Bean
      public FilterRegistrationBean<LdapAuthenticationFilter> ldapAuthenticationFilter(final LdapProperties ldapProperties,
                                                             final LdapConnectionFactory ldapConnectionFactory) {
          FilterRegistrationBean<LdapAuthenticationFilter> filterRegistration = new FilterRegistrationBean<>();
          filterRegistration.setFilter(new LdapAuthenticationFilter(ldapProperties, ldapConnectionFactory));
          filterRegistration.setOrder(Ordered.LOWEST_PRECEDENCE - 1);
          ldapProperties.getPrefixes().forEach(prefix -> filterRegistration.addUrlPatterns(String.format("%s/*", prefix)));
          return filterRegistration;
      }
docs: Add an authentication filter to the web application context if edison.ldap property is set to {@code enabled}'.
  All routes starting with the value of the {@code edison.ldap.prefix} property will be secured by LDAP. If no
  property is set this will default to all routes starting with '/internal'.
  
  @param ldapProperties the properties used to configure LDAP
  @param ldapConnectionFactory the connection factory used to build the LdapAuthenticationFilter
  @return FilterRegistrationBean