Examples of EmbeddedApacheDirectoryServer


Examples of org.apache.hadoop.gateway.security.EmbeddedApacheDirectoryServer

    this.resourceBaseClass = resourceBaseClass;
  }

  public int setupLdap( int port ) throws Exception {
    URL usersUrl = getResourceUrl( "users.ldif" );
    ldap = new EmbeddedApacheDirectoryServer( "dc=hadoop,dc=apache,dc=org", null, port );
    ldap.start();
    ldap.loadLdif( usersUrl );
    log.info( "LDAP port = " + port );
    return port;
  }
View Full Code Here

Examples of org.apache.hadoop.gateway.security.EmbeddedApacheDirectoryServer

   * @return The actual port the LDAP server is listening on.
   * @throws Exception Thrown if a failure occurs.
   */
  public int setupLdap( int port ) throws Exception {
    URL usersUrl = getResourceUrl( "users.ldif" );
    ldap = new EmbeddedApacheDirectoryServer( "dc=hadoop,dc=apache,dc=org", null, port );
    ldap.start();
    ldap.loadLdif( usersUrl );
    log.info( "LDAP port = " + port );
    return port;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.