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

Best Java code snippets using org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.groupSearchBase (Showing top 7 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
}
Official Spring framework guide
origin: spring-guides/gs-authenticating-ldap

@Override
public void configure(AuthenticationManagerBuilder auth) throws Exception {
  auth
    .ldapAuthentication()
      .userDnPatterns("uid={0},ou=people")
      .groupSearchBase("ou=groups")
      .contextSource()
        .url("ldap://localhost:8389/dc=springframework,dc=org")
        .and()
      .passwordCompare()
        .passwordEncoder(new LdapShaPasswordEncoder())
        .passwordAttribute("userPassword");
}
origin: apache/metron

.groupRoleAttribute(groupRoleAttribute)
.groupSearchFilter(groupSearchFilter)
.groupSearchBase(groupSearchBase)
.contextSource()
.url(providerUrl)
origin: XiaoMi/shepher

  @Autowired
  public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    if (ShepherConstants.LOGIN_TYPE_LDAP.equals(loginType.toUpperCase())) {
      auth.ldapAuthentication()
          .userDnPatterns("uid={0},ou=people")
          .groupSearchBase("ou=groups")
          .contextSource()
          .url(ldapUrl)
          .managerPassword(ldapPassword)
          .managerDn(ldapDn);
    } else if (ShepherConstants.LOGIN_TYPE_DEMO.equals(loginType.toUpperCase())) {
      auth.inMemoryAuthentication()
          .withUser(demoAdminName)
          .password(demoAdminPassword)
          .roles("USER");
    }
  }
}
origin: io.gravitee.management.providers/gravitee-management-api-providers-ldap

.groupSearchBase(environment.getProperty("security.providers[" + providerIdx + "].group-search-base", ""))
.groupSearchFilter(environment.getProperty("security.providers[" + providerIdx + "].group-search-filter", "(uniqueMember={0})"))
.groupRoleAttribute(environment.getProperty("security.providers[" + providerIdx + "].group-role-attribute", "cn"))
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: SourceLabOrg/kafka-webview

.userDnPatterns(ldapAppProperties.getUserDnPattern())
.groupRoleAttribute(ldapAppProperties.getGroupRoleAttribute())
.groupSearchBase(ldapAppProperties.getGroupSearchBase())
.contextSource()
.url(ldapAppProperties.getUrl())
origin: org.springframework.cloud/spring-cloud-common-security-config-web

ldapConfigurer.groupSearchBase(ldapSecurityProperties.getGroupSearchBase())
    .groupSearchFilter(ldapSecurityProperties.getGroupSearchFilter())
    .groupRoleAttribute(ldapSecurityProperties.getGroupRoleAttribute());
org.springframework.security.config.annotation.authentication.configurers.ldapLdapAuthenticationProviderConfigurergroupSearchBase

Javadoc

The search base for group membership searches. Defaults to "".

Popular methods of LdapAuthenticationProviderConfigurer

  • contextSource
    Specifies the BaseLdapPathContextSource to be used. If not specified, an embedded LDAP server will b
  • 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".
  • groupSearchFilter
    The LDAP filter to search for groups. Defaults to "(uniqueMember={0})". The substituted parameter is
  • groupRoleAttribute,
  • groupSearchFilter,
  • postProcess,
  • rolePrefix,
  • userSearchBase,
  • userSearchFilter,
  • addObjectPostProcessor,
  • getLdapAuthoritiesPopulator,
  • passwordCompare

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

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)