Package com.google.enterprise.connector.ldap.LdapHandler

Examples of com.google.enterprise.connector.ldap.LdapHandler.LdapRule


    // test LDAP server without throwing an OutOfMemoryError.
    if (maxResults == 0) {
      maxResults = 1000;
    }

    LdapRule ldapRule = makeSimpleLdapRule();
    LdapHandler ldapHandler = new LdapHandler();
    ldapHandler.setLdapConnectionSettings(makeLdapConnectionSettings());
    ldapHandler.setQueryParameters(ldapRule, schema, getSchemaKey(), maxResults);
    return ldapHandler;
  }
View Full Code Here


  }

  private static LdapRule makeSimpleLdapRule() {
    String filter = getTestFilter();
    Scope scope = Scope.SUBTREE;
    LdapRule ldapRule = new LdapRule(scope, filter);
    return ldapRule;
  }
View Full Code Here

        new LdapConnectionSettings(this.method, this.hostname, this.port, this.basedn,
        this.authtype, this.username, this.password);
    LOG.fine("this.settings: " + this.settings);

    // only create an LdapRule if one was supplied
    this.rule = (this.filter == null) ? null : new LdapRule(Scope.SUBTREE, this.filter);
  }
View Full Code Here

        LOG
            .info("Error while trying set the connection in FormManager constructor using settings :"
                + settings + sw.toString());
      }

      LdapRule rule = ldapConnectorConfig.getRule();
      if (rule != null) {
        try {
          getSchema(rule);
        } catch (IllegalStateException e) {
          reportError(e);
View Full Code Here

      }

      ConfigureResponse failed = null;

      // TODO: check for empty schema found
      LdapRule rule = ldapConnectorConfig.getRule();

      getSchema(rule);
      // the above call sets the configureResponse non-null if there was an error
      // and sets puts the schema found in the schemaField
      if (configureResponse != null) {
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.ldap.LdapHandler.LdapRule

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.