Assigning Class of Service
Chapter 5
Advanced Entry Management
197
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
cosSpecifier
attribute.
First, you add a new classic CoS definition entry to the
dc=example,dc=com
suffix,
using
ldapmodify
as follows:
ldapmodify -a -D "cn=directory manager" -w secret -h host -p 389
The
ldapmodify
utility binds to the server and prepares it to add information to
the configuration file.
Next, you add the indirect CoS definition to the
dc=example,dc=com
root suffix, as
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
cn
of the template sets the value of the
businessCategory
attribute in the target entry, and then the attributes are added
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
suffix. Depending upon the combination of the
businessCategory
attribute found in the entry and the cosTemplate DN, it can
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.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...