Package org.springframework.security.ldap.server

Examples of org.springframework.security.ldap.server.ApacheDSContainer


  @Inject
  Configuration configuration;

  @BeforeClass
  public static void beforeClass() throws Exception{
    apacheDSContainer = new ApacheDSContainer("dc=ambari,dc=the apache,dc=org", "classpath:/users_for_dn_with_space.ldif");
    apacheDSContainer.setPort(33389);
    apacheDSContainer.afterPropertiesSet();
  }
View Full Code Here


  private File workingDir;

  @Override
  protected void before() throws Throwable {
    apacheDSContainer = new ApacheDSContainer("dc=springframework,dc=org", "classpath:org/springframework/xd/dirt/security/testUsers.ldif");
    int ldapPort = SocketUtils.findAvailableTcpPort();
    apacheDSContainer.setPort(ldapPort);
    apacheDSContainer.afterPropertiesSet();
    workingDir = new File(FileUtils.getTempDirectoryPath() + "/" + UUID.randomUUID().toString());
    apacheDSContainer.setWorkingDirectory(workingDir);
View Full Code Here

  @BeforeClass
  public static void beforeClass() throws Exception{
    injector = Guice.createInjector(new AuthorizationTestModuleForLdapDNWithSpace());
    injector.getInstance(GuiceJpaInitializer.class);

    apacheDSContainer = new ApacheDSContainer("dc=ambari,dc=the apache,dc=org", "classpath:/users_for_dn_with_space.ldif");
    apacheDSContainer.setPort(33389);
    apacheDSContainer.afterPropertiesSet();
  }
View Full Code Here

            }
            contextSource = postProcess(contextSource);
            if(url != null) {
                return contextSource;
            }
            ApacheDSContainer apacheDsContainer = new ApacheDSContainer(root, ldif);
            apacheDsContainer.setPort(port);
            postProcess(apacheDsContainer);
            return contextSource;
        }
View Full Code Here

TOP

Related Classes of org.springframework.security.ldap.server.ApacheDSContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.