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

Jean-Noël Rouvignac
05.56.2016 c8a1bec908f144ebacb97ba6c591eaf0f47779f6
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigFromConnection.java
@@ -18,6 +18,7 @@
import static org.forgerock.opendj.ldap.SearchScope.*;
import static org.forgerock.opendj.ldap.requests.Requests.*;
import static org.opends.admin.ads.util.ConnectionUtils.*;
import static org.opends.messages.AdminToolMessages.*;
import static org.opends.server.backends.pluggable.SuffixContainer.*;
import static org.opends.server.config.ConfigConstants.*;
@@ -722,11 +723,10 @@
    {
      Attribute backendIdAttr = sr.getAttribute("ds-backend-id");
      Attribute entryCount = sr.getAttribute("ds-backend-entry-count");
      Attribute baseDnEntriesAttr = sr.getAttribute("ds-base-dn-entry-count");
      if (backendIdAttr != null && (entryCount != null || !baseDnEntriesAttr.isEmpty()))
      Set<String> baseDnEntries = asSetOfString(sr, "ds-base-dn-entry-count");
      if (backendIdAttr != null && (entryCount != null || !baseDnEntries.isEmpty()))
      {
        String backendID = backendIdAttr.firstValueAsString();
        Set<String> baseDnEntries = baseDnEntriesAttr.parse().asSetOfString();
        for (BackendDescriptor backend : backends)
        {
          if (backend.getBackendID().equalsIgnoreCase(backendID))