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

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


      LOG.warning("Found illegal port value: " + portString + " defaulting to 389");
      p = 389;
    }
    this.port = p;

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


      int port = ldapConnectorConfig.getPort();
      LOG.fine("port " + port);
      portField.setValueFromInt(port);

      AuthType authtype = ldapConnectorConfig.getAuthtype();
      LOG.fine("authtype " + authtype);
      authTypeField.setValue(authtype);

      String username = ldapConnectorConfig.getUsername();
      LOG.fine("username " + username);
View Full Code Here

     
      // Specify connection timeout, value of zero or less means use networks timeout value
      env.put(COM_SUN_JNDI_LDAP_CONNECT_TIMEOUT, connectionTimeOut);   

      // Set our authentication settings.
      AuthType authType = settings.getAuthType();
      if (authType == AuthType.SIMPLE) {
        env.put(Context.SECURITY_AUTHENTICATION, authType.toString()
            .toLowerCase());
        env.put(Context.SECURITY_PRINCIPAL, settings.getUsername());
        env.put(Context.SECURITY_CREDENTIALS, settings.getPassword());
        LOG.info("Using simple authentication.");
      } else {
View Full Code Here

TOP

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

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.