Example Of A Classic Cos - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Example of a Classic CoS

You want to create a classic CoS that automatically generates postal codes using a
combination of the template DN and the attribute specified in the
attribute.
First, you add a new classic CoS definition entry to the
using
as follows:
ldapmodify
ldapmodify -a -D "cn=directory manager" -w secret -h host -p 389
The
utility binds to the server and prepares it to add information to
ldapmodify
the configuration file.
Next, you add the indirect CoS definition to the
follows:
dn: cn=classicCoS,dc=example,dc=com
objectclass: top
objectclass: cosSuperDefinition
objectclass: cosClassicDefinition
cosTemplateDn: cn=classicCoS,dc=example,dc=com
cosSpecifier: businessCategory
cosAttribute: postalCode override
Next, you create the template entries for the sales and marketing departments. Add
the CoS attributes to the template entry. The
attribute in the target entry, and then the attributes are added
businessCategory
or overwritten according to the value in the template:
dn: cn=sales,cn=classicCoS,dc=example,dc=com
objectclass: top
objectclass: extensibleobject
objectclass: cosTemplate
postalCode: 44438
dn: cn=marketing,cn=classicCoS,dc=example,dc=com
objectclass: top
objectclass: extensibleobject
objectclass: cosTemplate
postalCode: 99111
The classic CoS definition entry applies to all entries under the
dc=example,dc=com
attribute found in the entry and the cosTemplate DN, it can
businessCategory
arrive at one of two templates. One, the sales template, provides a postal code
specific to employees in the sales department. The marketing template provides a
postal code specific to employees in the marketing department.
suffix. Depending upon the combination of the
dc=example,dc=com
dc=example,dc=com
of the template sets the value of the
cn
Chapter 5
Advanced Entry Management
Assigning Class of Service
cosSpecifier
suffix,
root suffix, as
197

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 7.1

Table of Contents