
Chapter 5. Managing Entries with Roles, Classes of Service, and Views
132
template entry already exists and is used for something else, such as a user entry, the
LDAPsubentry
object class does not need to be added to the template entry.
The CoS template entry also contains the attribute generated by the CoS (as specified in the
cosAttribute
attribute of the CoS definition entry) and the value for that attribute.
For example, a CoS template entry that provides a value for the
postalCode
attribute follows:
dn:cn=exampleUS,ou=data,dc=example,dc=com
objectclass: top
objectclass: extensibleObject
objectclass: cosTemplate
postalCode: 44438
The following sections provide examples of template entries along with examples of each type of CoS
definition entry.
•
Section 5.2.3.3, “Example of a Pointer CoS”
•
Section 5.2.3.4, “Example of an Indirect CoS”
•
Section 5.2.3.5, “Example of a Classic CoS”
5.2.3.3. Example of a Pointer CoS
Example Corporation's administrator is creating a pointer CoS that shares a common postal code with
all entries in the
dc=example,dc=com
tree.
1. Add a new pointer CoS definition entry to the
dc=example,dc=com
suffix using
ldapmodify
:
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.
2. Next, add the pointer CoS definition to the
dc=example,dc=com
root suffix.
dn: cn=pointerCoS,dc=example,dc=com
objectclass: top
objectclass: cosSuperDefinition
objectclass: cosPointerDefinition
cosTemplateDn: cn=exampleUS,ou=data,dc=example,dc=com
cosAttribute: postalCode
3. Create the template entry.
dn: cn=exampleUS,ou=data,dc=example,dc=com
objectclass: top
objectclass: extensibleObject
objectclass: cosTemplate
postalCode: 44438
The CoS template entry (
cn=exampleUS,ou=data,dc=example,dc=com
) supplies the value
stored in its
postalCode
attribute to any entries located under the
dc=example,dc=com
suffix.
These entries are the target entries.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...