Package com.google.enterprise.connector.ldap.LdapConstants

Examples of com.google.enterprise.connector.ldap.LdapConstants.Method


    LdapContext ldapContext = handler.getLdapContext();
    assertNotNull(ldapContext);
  }

  private static LdapConnectionSettings makeLdapConnectionSettings() {
    Method method = Method.STANDARD;
    String hostname = LdapHandlerTest.getHostname();
    int port = 389;
    String baseDN = LdapHandlerTest.getTestProperties().getProperty("basedn");
    LdapConnectionSettings settings;
    if (Strings.isNullOrEmpty(TEST_USER)
View Full Code Here


      System.out.println("Error " + e + " message: " + errors.get(e));
    }
  }

  private static LdapConnectionSettings makeInvalidLdapConnectionSettings() {
    Method method = Method.STANDARD;
    String hostname = "not-ldap.xyzzy.foo";
    int port = 389;
    String baseDN = LdapHandlerTest.getTestProperties().getProperty("basedn");
    LdapConnectionSettings settings =
        new LdapConnectionSettings(method, hostname, port, baseDN);
View Full Code Here

    assertEquals((afterTime - beforeTime), 10000, 100);
    assertNull(ldapContext);
  }

  private static LdapConnectionSettings makeTimedoutLdapConnectionSettings() {
    Method method = Method.STANDARD;
    // hostname needs to be valid but unreachable and times out for this test
    String hostname = getTimeoutHostname();
    int port = 389;
    String baseDN = LdapHandlerTest.getTestProperties().getProperty("basedn");
    LdapConnectionSettings settings =
View Full Code Here

    this.authtype = authtype;
    this.username = username;
    this.password = password;

    Method method = Method.STANDARD;
    if (methodString != null) {
      try {
        method = Enum.valueOf(Method.class, methodString);
      } catch (IllegalArgumentException e) {
        LOG.warning("Found illegal method value: " + methodString + " defaulting to "
View Full Code Here

      String password = ldapConnectorConfig.getPassword();
      String displayPassword = makeDisplayPassword(password);
      LOG.fine("password " + displayPassword);
      passwordField.setValueFromString(password);

      Method method = ldapConnectorConfig.getMethod();
      LOG.fine("method " + method);
      methodField.setValue(method);

      String basedn = ldapConnectorConfig.getBasedn();
      LOG.fine("basedn " + basedn);
View Full Code Here

      return ctx;
    }

    private String makeLdapUrl() {
      String url;
      Method connectMethod =
          settings.getConnectMethod();
      if (connectMethod == Method.SSL) {
        url = "ldaps://"; //$NON-NLS-1$
      } else {
        url = "ldap://"; //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.ldap.LdapConstants.Method

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.