Examples of ExactMatchIdentityMapperCfg


Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

   *                              provided ID.
   */
  public Entry getEntryForID(String id)
         throws DirectoryException
  {
    ExactMatchIdentityMapperCfg config = currentConfig;
    AttributeType[] attributeTypes = this.attributeTypes;


    // Construct the search filter to use to make the determination.
    SearchFilter filter;
    if (attributeTypes.length == 1)
    {
      AttributeValue value = AttributeValues.create(attributeTypes[0], id);
      filter = SearchFilter.createEqualityFilter(attributeTypes[0], value);
    }
    else
    {
      ArrayList<SearchFilter> filterComps =
           new ArrayList<SearchFilter>(attributeTypes.length);
      for (AttributeType t : attributeTypes)
      {
        AttributeValue value = AttributeValues.create(t, id);
        filterComps.add(SearchFilter.createEqualityFilter(t, value));
      }

      filter = SearchFilter.createORFilter(filterComps);
    }


    // Iterate through the set of search bases and process an internal search
    // to find any matching entries.  Since we'll only allow a single match,
    // then use size and time limits to constrain costly searches resulting from
    // non-unique or inefficient criteria.
    Collection<DN> baseDNs = config.getMatchBaseDN();
    if ((baseDNs == null) || baseDNs.isEmpty())
    {
      baseDNs = DirectoryServer.getPublicNamingContexts().keySet();
    }

View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

   */
  @Override()
  public boolean isConfigurationAcceptable(IdentityMapperCfg configuration,
                                           List<Message> unacceptableReasons)
  {
    ExactMatchIdentityMapperCfg config =
         (ExactMatchIdentityMapperCfg) configuration;
    return isConfigurationChangeAcceptable(config, unacceptableReasons);
  }
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

   */
  @Test(dataProvider = "validConfigs")
  public void testValidConfigs(Entry e)
         throws Exception
  {
    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(), e);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
    mapper.finalizeIdentityMapper();
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

        expectedExceptions = { ConfigException.class,
                               InitializationException.class })
  public void testInvalidConfigs(Entry e)
         throws Exception
  {
    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(), e);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
  }
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

         "ds-cfg-java-class: " +
              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: uid");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: uid",
         "ds-cfg-match-base-dn: o=test");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: uid",
         "ds-cfg-match-base-dn: o=notdefined");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: uid",
         "ds-cfg-match-base-dn: o=test");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: cn",
         "ds-cfg-match-base-dn: o=test");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here

Examples of org.nasutekds.server.admin.std.server.ExactMatchIdentityMapperCfg

              "org.nasutekds.server.extensions.ExactMatchIdentityMapper",
         "ds-cfg-enabled: true",
         "ds-cfg-match-attribute: uid",
         "ds-cfg-match-attribute: cn");

    ExactMatchIdentityMapperCfg configuration =
         AdminTestCaseUtils.getConfiguration(
              ExactMatchIdentityMapperCfgDefn.getInstance(),
              mapperEntry);
    ExactMatchIdentityMapper mapper = new ExactMatchIdentityMapper();
    mapper.initializeIdentityMapper(configuration);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.