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

Examples of com.google.enterprise.connector.sharepoint.ldap.UserGroupsService.LdapConnectionSettings


              this.authenticationType.toString())) {
            authType = AuthType.ANONYMOUS;
          } else {
            authType = AuthType.SIMPLE;
          }
          LdapConnectionSettings settings = new LdapConnectionSettings(method,
              this.ldapServerHostAddress, Integer.parseInt(this.portNumber),
              this.searchBase, authType, this.username, this.password,
              this.domain);
          LOGGER
          .config("Created LDAP connection settings object to obtain LDAP context "
View Full Code Here


    assertEquals("Group, Name \\28Comment\\29", this.userGroupsService.ldapEscape("Group, Name (Comment)"));
  }

  @Test
  public void testInvalidCredentials() {
    LdapConnectionSettings lcs = new LdapConnectionSettings(Method.STANDARD,
        TestConfiguration.ldapServerHostAddress,
        TestConfiguration.portNumber,
        TestConfiguration.searchBase,
        AuthType.SIMPLE,
        TestConfiguration.username,
View Full Code Here

    return memberships;
  }

  public static LdapConnectionSettings getLdapConnetionSettings() {
    LdapConnectionSettings settings = new LdapConnectionSettings(
        Method.STANDARD, ldapServerHostAddress, portNumber, searchBase,
        AuthType.SIMPLE, username, password, ldapDomainName);
    return settings;
  }
View Full Code Here

        AuthType.SIMPLE, username, password, ldapDomainName);
    return settings;
  }

  public static LdapContext getLdapContext() {
    LdapConnectionSettings ldapConnectionSettings = getLdapConnetionSettings();
    UserGroupsService serviceImpl = new UserGroupsService(
        ldapConnectionSettings, TestConfiguration.cacheSize,
        TestConfiguration.refreshInterval, true);
    return serviceImpl.getLdapContext();
  }
View Full Code Here

    if (Method.SSL.toString().equalsIgnoreCase(this.connectMethod.toString())) {
      method = Method.SSL;
    } else {
      method = Method.STANDARD;
    }
    LdapConnectionSettings ldapConnectionSettings = new LdapConnectionSettings(
        method, this.ldapServerHostAddress, Integer.parseInt(this.portNumber),
        this.searchBase, authType, this.username, this.password, this.domain);
    this.ldapConnectionSettings = ldapConnectionSettings;
    return ldapConnectionSettings;
  }
View Full Code Here

    }
    adGroupsAuthenticationManager = inAdGroupsAuthenticationManager;
    this.clientFactory = clientFactory;
    sharepointClientContext = (SharepointClientContext) inSharepointClientContext.clone();
    if (sharepointClientContext.isPushAcls()) {
      LdapConnectionSettings ldapConnectionSettings = sharepointClientContext.getLdapConnectionSettings();
      if (!Strings.isNullOrEmpty(ldapConnectionSettings.getHostname())) {
        ldapService = new UserGroupsService(inSharepointClientContext);
      } else {
        ldapService = null;
      }
    } else {
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.ldap.UserGroupsService.LdapConnectionSettings

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.