5.4. Using Groups

5.4. Using Groups

Groups are a mechanism for associating entries for ease of administration. This mechanism was provided with previous versions of Directory Server and should be used primarily for compatibility with older versions of the server.

5.4.1. Managing Static Groups

Static groups organize entries by specifying the same group value in the DN attribute of any number of users. This section includes the following procedures for creating and modifying static groups:

NOTE

If a user has an entry on a remote Directory Server (for example, in a chained database), different from the Directory Server which has the entry that defines the static group, then use the Referential Integrity plug-in to ensure that deleted user entries are automatically deleted from the static group, but there are some performance and access control considerations. For more information about using referential integrity with chaining, refer to Section 3.3.1, “Configuring the Chaining Policy”.

5.4.1.1. Adding a New Static Group

  1. In the Directory Server Console, select the Directory tab.

  2. In the left pane, right-click the entry under which to add a new group, and select New > Group.

    Alternatively, go to the Object menu and select New > Group.

  3. Click General in the left pane. Type a name for the new group in the Group Name field.

    The group name is required.

  4. Enter a description of the new group in the Description field.

  5. Click Members in the left pane. In the right pane, select the Static Group tab. Click Add to add new members to the group.

    The standard Search users and groups dialog box appears.

  6. In the Search drop-down list, select what sort of entries to search for (users, groups, or both) then click Search. Select one of the entries returned, and click OK.

  7. Click Languages in the left pane to add language-specific information for the group.

  8. Click OK to create the new group. It appears in the right pane.

5.4.1.2. Modifying a Static Group

  1. In the Directory Server Console, select the Directory tab.

    The directory contents appear in the left pane.

  2. Double-click the entry to modify, or select Open from the Object menu.

    The Edit Group dialog box appears.

  3. Click OK. To view the changes, go to the View menu, and select Refresh.

NOTE

The Console for managing static groups may not display all possible selections during a search operation if there is no VLV index for users' search. This problem occurs only when the number of users is 1000 or more and there is no VLV index for search. To work around the problem, create a VLV index for the users suffix with the filter (objectclass=person) and scope sub-tree.

5.4.2. Managing Dynamic Groups

Dynamic groups filter users based on their DN and include them in a single group. This section contains the following procedures for creating and modifying dynamic groups:

5.4.2.1. Adding a New Dynamic Group

  1. Follow the steps of Section 5.4.1.1, “Adding a New Static Group”.

  2. Click Members in the left pane. In the right pane, select the Dynamic Group tab. Click Add to create a LDAP URL for querying the database.

    The standard Construct and Test LDAP URL dialog box opens.

  3. Enter an LDAP URL in the text field or select Construct to be guided through the construction of an LDAP URL.

  4. Click Languages in the left pane to add language-specific information for the group.

  5. Click OK. The new group appears in the right pane.

5.4.2.2. Modifying a Dynamic Group

  1. In the Directory Server Console, select the Directory tab.

    The directory contents appear in the left pane.

  2. Double-click the entry to modify, or select Properties from the Object menu.

    The Edit Group dialog box appears.

  3. Make any changes to the group information. Click OK.

    To view the changes, go to the View menu, and select Refresh.

NOTE

The Console for managing dynamic groups may not display all possible selections during a search operation if there is no VLV index for users' search. This problem can occur when the number of users is 1000 or more and there is no VLV index for search. To work around the problem, create a VLV index for the users suffix with the filter (objectclass=person) and scope sub-tree.


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.