mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
19.30.2014 377b2709c64b32fe93905b466482216c2cc0581c
opendj3-server-dev/src/server/org/opends/server/extensions/RegularExpressionIdentityMapper.java
@@ -38,6 +38,7 @@
import java.util.regex.PatternSyntaxException;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.DereferenceAliasesPolicy;
import org.forgerock.opendj.ldap.SearchScope;
import org.opends.server.admin.server.ConfigurationChangeListener;
@@ -200,8 +201,7 @@
    SearchFilter filter;
    if (attributeTypes.length == 1)
    {
      AttributeValue value =
          AttributeValues.create(attributeTypes[0], processedID);
      ByteString value = ByteString.valueOf(processedID);
      filter = SearchFilter.createEqualityFilter(attributeTypes[0], value);
    }
    else
@@ -210,7 +210,7 @@
           new ArrayList<SearchFilter>(attributeTypes.length);
      for (AttributeType t : attributeTypes)
      {
        AttributeValue value = AttributeValues.create(t, processedID);
        ByteString value = ByteString.valueOf(processedID);
        filterComps.add(SearchFilter.createEqualityFilter(t, value));
      }
@@ -290,15 +290,7 @@
      }
    }
    if (matchingEntry == null)
    {
      return null;
    }
    else
    {
      return matchingEntry;
    }
    return matchingEntry;
  }