Assigning Class of Service
Chapter 5
Advanced Entry Management
195
Templates that contain no
cosPriority
attribute are considered the lowest
priority. In the case where two or more templates are considered to supply an
attribute value and they have the same (or no) priority, a value is chosen
arbitrarily. The behavior for negative
cosPriority
values is not defined in
Directory Server; do not enter negative values. Also, the
cosPriority
attribute is
not supported by indirect CoS.
For example, a CoS template entry for generating a department number appears as
follows:
dn: cn=data,dc=example,dc=com
objectclass: top
objectclass: extensibleobject
objectclass: cosTemplate
departmentNumber: 71776
cosPriority: 0
This template entry contains the value for the
departmentNumber
attribute. It has a
priority of zero, meaning this template takes precedence over any other conflicting
templates that define a different
departmentNumber
value.
The following sections provide examples of template entries along with examples
of each type of CoS definition entry.
Example of a Pointer CoS
You want to create a pointer CoS that shares a common postal code with all entries
in the
dc=example,dc=com
tree.
To add a new pointer CoS definition entry to the
dc=example,dc=com
suffix, you
do an
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 pointer CoS definition to the
dc=example,dc=com
root suffix as
follows:
dn: cn=pointerCoS,dc=example,dc=com
objectclass: top
objectclass: cosSuperDefinition
objectclass: cosPointerDefinition
cosTemplateDn: cn=exampleUS,ou=data,dc=example,dc=com
cosAttribute: postalCode
Next, you create the template entry as follows:
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 ...