code: protected void configureLdapAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.LdapSecurity ldap) {
          if (isLdapAuthorizationActive()) {
              val p = new MonitorEndpointLdapAuthenticationProvider(ldap, securityProperties);
              auth.authenticationProvider(p);
          } else {
              LOGGER.trace("LDAP authorization is undefined, given no LDAP url, base-dn, search filter or role/group filter is configured");
          }
      }
docs: Configure ldap authentication provider.
  
  @param auth the auth
  @param ldap the ldap