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

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


      Hashtable<String, String> env = new Hashtable<String, String>();
      // Use the built-in LDAP support.
      env.put(Context.INITIAL_CONTEXT_FACTORY, LdapConstants.COM_SUN_JNDI_LDAP_LDAP_CTX_FACTORY);

      // 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()
            + SPConstants.AT + settings.domainName);
        env.put(Context.SECURITY_CREDENTIALS, settings.getPassword());
        LOGGER.info("Using simple authentication.");
      } else {
View Full Code Here


            method = Method.SSL;
          } else {
            method = Method.STANDARD;
          }

          AuthType authType;
          if (AuthType.ANONYMOUS.toString().equalsIgnoreCase(
              this.authenticationType.toString())) {
            authType = AuthType.ANONYMOUS;
          } else {
            authType = AuthType.SIMPLE;
View Full Code Here

  /**
   * @return LDAP Authentication Type used to connect to LDAP directory server.
   */
  public String getAuthenticationType() {
    AuthType authType;
    if (AuthType.ANONYMOUS.toString().equalsIgnoreCase(
        this.authenticationType.toString())) {
      authType = AuthType.ANONYMOUS;
    } else {
      authType = AuthType.SIMPLE;
    }
    return authType.toString();
  }
View Full Code Here

  /**
   * @return {@linkplain LdapConnectionSettings}
   */
  public LdapConnectionSettings getLdapConnectionSettings() {
    AuthType authType;
    if (AuthType.ANONYMOUS.toString().equalsIgnoreCase(
        this.authenticationType.toString())) {
      authType = AuthType.ANONYMOUS;
    } else {
      authType = AuthType.SIMPLE;
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.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.