HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

5.3.2 Deleting views from the Directory Server Console
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.
4. A dialog box appears to confirm the deletion of the entry. Click Yes.
5.3.3 Creating views from the command line
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 -p 389 -h server.example.com
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 that identifies entries that belong in the view.
dn: ou=Example View,dc=example,dc=com
objectClass: top
objectClass: organizationalunit
objectClass: nsview
ou=Example View
nsViewFilter: l=Mountain View
description: Example View
5.3.4 Deleting views from the command line
To delete a view from the command line:
1. Use the ldapdelete utility to bind to the server and prepare it to remove the view entry to
the configuration file.
ldapdelete -D "cn=directory manager" -w secret -p 389 \
-h server.example.com "ou=Example View,dc=example,dc=com"
2. Remove the view entry. It is not necessary to remove any entries included in the view.
dn: ou=Example View,dc=example,dc=com
objectClass: top
objectClass: organizationalunit
objectClass: nsview
ou=Example View
nsViewFilter: l=Mountain View
description: Example View
5.4 Using groups
Groups are a mechanism for associating entries for ease of administration. Groups do not have
the flexibility or utility of roles, CoS, and views. However, there are certain clients and applications
where groups are useful. Groups also offer compatibility with older LDAP clients and directory
services.
NOTE:
Managing groups is significantly easier by using the memberOf attribute to identify in user entries
to what groups a user belongs. The memberOf attribute is maintained by the Directory Server and
updated automatically on entries as group membership changes. For information on using the
memberOf attribute, see “Using the memberOf Attribute to manage group membership
information” (page 225).
216 Organizing Entries with roles, Class of service, and Views