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

lutoff
23.04.2007 c9cf4b33809b5e3cbe8e5564b561f132c4b605ba
Fix for issue #2009 (dsframework needs to have  the default "all-servers" group)

The "all-servers" group is now created when the ADS structure is created.
1 files modified
15 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/ADSContext.java 15 ●●●● patch | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/ADSContext.java
@@ -194,10 +194,10 @@
  private static HashMap<String, ServerProperty> nameToServerProperty = null;
  /**
   * Get a ServerProperty associated to a name.
   * @param name The name of the property to retreive.
   * @param name The name of the property to retrieve.
   *
   * @return The corresponding ServerProperty or null if name
   * doesn't matech with an existing property.
   * doesn't match with an existing property.
   */
  public static ServerProperty getPropFromName(String name)
  {
@@ -223,6 +223,11 @@
  }
  /**
   * The default server group which will contain all registered servers.
   */
  public static final String ALL_SERVERGROUP_NAME = "all-servers";
  /**
   * Enumeration containing the different server group properties that are
   * stored in the ADS.
   */
@@ -841,6 +846,12 @@
    createAdministratorContainerEntry();
    createContainerEntry(getServerContainerDN());
    createContainerEntry(getServerGroupContainerDN());
    // Add the default "all-servers" group
    Map<ServerGroupProperty, Object> allServersGroupsMap =
      new HashMap<ServerGroupProperty, Object>();
    allServersGroupsMap.put(ServerGroupProperty.UID, ALL_SERVERGROUP_NAME);
    createServerGroup(allServersGroupsMap);
  }
  /**