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

Jean-Noël Rouvignac
03.32.2016 eaee3f6a42c1a129f07e2364a4c32c59b9e03e19
opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java
@@ -285,9 +285,7 @@
  {
    RDN srcRDN = searchEntry.getName().rdn();
    // Only process the entry if it has the expected form of RDN.
    if (!srcRDN.isMultiValued() &&
         srcRDN.getAttributeType(0).equals(attrAlias))
    if (canProcessEntry(srcRDN))
    {
      DN dstDN = trustStoreRootDN.child(srcRDN);
@@ -350,6 +348,12 @@
    }
  }
  /** Only process the entry if it has the expected form of RDN. */
  private boolean canProcessEntry(RDN rdn)
  {
    return !rdn.isMultiValued() && rdn.getFirstAVA().getAttributeType().equals(attrAlias);
  }
  /**
   * Modify an entry in the local trust store if it differs from an entry in
@@ -461,10 +465,7 @@
  private void handleInstanceKeyAddOperation(Entry entry)
  {
    RDN srcRDN = entry.getName().rdn();
    // Only process the entry if it has the expected form of RDN.
    if (!srcRDN.isMultiValued() &&
         srcRDN.getAttributeType(0).equals(attrAlias))
    if (canProcessEntry(srcRDN))
    {
      DN dstDN = trustStoreRootDN.child(srcRDN);
@@ -486,12 +487,10 @@
    RDN srcRDN = op.getEntryToDelete().getName().rdn();
    // Only process the entry if it has the expected form of RDN.
    // FIXME: Technically it is possible to perform a subtree in
    // this case however such subtree delete would essentially be
    // removing configuration branches which should not happen.
    if (!srcRDN.isMultiValued() &&
         srcRDN.getAttributeType(0).equals(attrAlias))
    if (canProcessEntry(srcRDN))
    {
      DN destDN = trustStoreRootDN.child(srcRDN);
      deleteEntry(destDN);
@@ -539,9 +538,7 @@
  {
    RDN srcRDN = newEntry.getName().rdn();
    // Only process the entry if it has the expected form of RDN.
    if (!srcRDN.isMultiValued() &&
         srcRDN.getAttributeType(0).equals(attrAlias))
    if (canProcessEntry(srcRDN))
    {
      DN dstDN = trustStoreRootDN.child(srcRDN);