LdapAuthenticationProviderConfigurer.groupSearchFilter
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.groupSearchFilter (Showing top 4 results out of 315)

  • Common ways to obtain LdapAuthenticationProviderConfigurer
private void myMethod () {
LdapAuthenticationProviderConfigurer l =
  • AuthenticationManagerBuilder authenticationManagerBuilder;authenticationManagerBuilder.apply(new LdapAuthenticationProviderConfigurer<>())
  • Smart code suggestions by Codota
}
origin: apache/metron

.userSearchFilter(userSearchFilter)
.groupRoleAttribute(groupRoleAttribute)
.groupSearchFilter(groupSearchFilter)
.groupSearchBase(groupSearchBase)
.contextSource()
origin: io.gravitee.management.providers/gravitee-management-api-providers-ldap

.groupSearchFilter(environment.getProperty("security.providers[" + providerIdx + "].group-search-filter", "(uniqueMember={0})"))
.groupRoleAttribute(environment.getProperty("security.providers[" + providerIdx + "].group-role-attribute", "cn"))
.rolePrefix("");
origin: org.opensingular/server-commons

@Override
public void configure(AuthenticationManagerBuilder auth) throws Exception {
  auth
      .ldapAuthentication()
      .userSearchFilter("(sAMAccountName={0})")
      .userSearchBase("OU=Mirante User,DC=miranteinfo,DC=com")
      .rolePrefix("ROLE_")
      .groupSearchBase("OU=GruposGS,DC=miranteinfo,DC=com")
      .groupSearchFilter("(member={0})")
      .userDetailsContextMapper(peticionamentoUserDetailService.orElseThrow(() ->
                  SingularServerException.rethrow(
                      String.format("Bean %s do tipo %s não pode ser nulo. Para utilizar a configuração de segurança %s é preciso declarar um bean do tipo %s identificado pelo nome %s .",
                          SingularUserDetailsService.class.getName(),
                          "SingularUserDetailsService",
                          SingularMiranteADSpringSecurityConfig.class.getName(),
                          SingularUserDetailsService.class.getName(),
                          "SingularUserDetailsService"
                      ))
          )
      )
      .contextSource()
      .managerDn("tomcatLogin")
      .managerPassword("jnditomcat")
      .root("DC=miranteinfo,DC=com")
      .url("ldap://LUA.miranteinfo.com:389/");
}
origin: org.springframework.cloud/spring-cloud-common-security-config-web

.groupSearchFilter(ldapSecurityProperties.getGroupSearchFilter())
.groupRoleAttribute(ldapSecurityProperties.getGroupRoleAttribute());
org.springframework.security.config.annotation.authentication.configurers.ldapLdapAuthenticationProviderConfigurergroupSearchFilter

Javadoc

The LDAP filter to search for groups. Defaults to "(uniqueMember={0})". The substituted parameter is the DN of the user.

Popular methods of LdapAuthenticationProviderConfigurer

  • contextSource
    Specifies the BaseLdapPathContextSource to be used. If not specified, an embedded LDAP server will b
  • groupSearchBase
    The search base for group membership searches. Defaults to "".
  • userDnPatterns
    If your users are at a fixed location in the directory (i.e. you can work out the DN directly from t
  • <init>
  • build
  • createBindAuthenticator
    Creates a BindAuthenticator
  • createLdapAuthenticator
    Creates the LdapAuthenticator to use
  • createPasswordCompareAuthenticator
    Creates PasswordComparisonAuthenticator
  • createUserSearch
  • getAuthoritiesMapper
    Gets the GrantedAuthoritiesMapper and defaults to SimpleAuthorityMapper.
  • getContextSource
  • groupRoleAttribute
    Specifies the attribute name which contains the role name. Default is "cn".
  • getContextSource,
  • groupRoleAttribute,
  • postProcess,
  • rolePrefix,
  • userSearchBase,
  • userSearchFilter,
  • addObjectPostProcessor,
  • getLdapAuthoritiesPopulator,
  • passwordCompare

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BoxLayout (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)