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

floblanc
23.55.2009 8fe39485d77a14b6e2a3f3d63a63bba6a0be645a
opends/src/server/org/opends/server/core/networkgroups/NetworkGroup.java
@@ -1246,8 +1246,11 @@
    {
      // Search the highest workflow in the topology that can handle
      // the baseDN.
      //First search the private workflows
      // The order is important to ensure that the admin network group
      // is not broken and can always find cn=config
      for (WorkflowTopologyNode curWorkflow : namingContexts
          .getNamingContexts())
          .getPrivateNamingContexts())
      {
        workflowCandidate = curWorkflow.getWorkflowCandidate(baseDN);
        if (workflowCandidate != null)
@@ -1255,6 +1258,19 @@
          break;
        }
      }
      // If not found, search the public
      if (workflowCandidate == null) {
        for (WorkflowTopologyNode curWorkflow : namingContexts
            .getPublicNamingContexts())
        {
          workflowCandidate = curWorkflow.getWorkflowCandidate(baseDN);
          if (workflowCandidate != null)
          {
            break;
          }
        }
      }
    }
    return workflowCandidate;