HP UX Red Hat Direry Server Software manual Example of a Classic CoS

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 180
Image 180

Chapter 5. Managing Entries with Roles, Class of Service, and Views

vary depending on the department number listed in the different manager's entries.

2.3.5. Example of a Classic CoS

The Example Corporation administrator is creating a classic CoS that automatically generates postal codes using a combination of the template DN and the attribute specified in the cosSpecifier attribute.

1.Add a new classic 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.Add the indirect CoS definition to the dc=example,dc=com root suffix.

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

3.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.

160

Page 180
Image 180
HP UX Red Hat Direry Server Software manual Example of a Classic CoS