Chapter 5. Managing Entries with Roles, Class of Service, and Views

object class.

6.Name the organization unit according to how to organize the views. For instance, ou=Sunnyvale. Make the ou attribute the naming attribute.

7.Hit the Add Attribute button, and add the nsviewfilter attribute.

8.Create a filter that reflects the views. For example:

(l=Sunnyvale)

9.Hit OK to close the attributes box, and hit OK again to save the new view entry.

The new view is immediately populated with any entries matching the search filter, and any new entries added to directory are automatically included in the view.

3.2. Deleting Views from the Directory Server Console

To delete a view from the Directory Server Console, do the following:

1.Select the Directory tab.

2.Select the view to delete, such as ou=Sunnyvale,ou=LocationViews,dc=example,dc=com. To delete all the views, delete the entire sub suffix, ou=LocationViews,dc=example,dc=com.

3.Right-click the entry, and select Delete from the drop-down menu.

Alternatively, highlight the entry, and select the Object menu and then select Delete.

4.A dialog box appears to confirm the deletion of the entry. Click Yes.

3.3. Creating Views from the Command Line

To create a view from the command line, do the following:

1.Use the ldapmodify utility to bind to the server and prepare it to add the new view entry to the configuration file.

ldapmodify -a -D "cn=directory manager" -w secret -h host -p 389

2.Add the new views container entry, in this example, under the dc=example,dc=com root suffix. This entry must have the nsview object class and the nsViewFilter attribute. The nsViewFilter attribute sets the attribute-value which identifies entries that belong in the view.

164

Page 184
Image 184
HP UX Red Hat Direry Server Software manual Deleting Views from the Directory Server Console