HP UX Red Hat Direry Server Software Searches for CoS-Specified Attributes, Sample Classic CoS

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 168
Image 168

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

Figure 5.3. Sample Classic CoS

In this example, the CoS definition entry'scosSpecifier attribute specifies the employeeType attribute. This attribute, in combination with the template DN, identify the template entry as cn=sales,cn=exampleUS,cn=data. The template entry then provides the value of the postalCode attribute to the target entry.

2.1.6. Searches for CoS-Specified Attributes

CoS definitions provide values for attributes in entries. For example, a CoS can set the postalCode attribute for every entry in a subtree. Searches against those CoS-defined attributes, however, do not behave like searches against regular entries.

If the CoS-defined attribute is indexed with any kind of index (including presence), then any attribute with a value set by the CoS is not returned with a search. For example:

The postalCode attribute for Ted Morris is defined by a CoS.

The postalCode attribute for Barbara Jensen is set in her entry.

The postalCode attribute is indexed.

If an ldapsearch command uses the filter (postalCode=*), hen Barbara Jensen's entry would be returned, while Ted Morris's would not.

If the CoS-defined attribute is not indexed, then every matching entry is returned in a search, regardless of whether the attribute value is set locally or with CoS. For example:

148

Page 168
Image 168
HP UX Red Hat Direry Server Software manual Searches for CoS-Specified Attributes, Sample Classic CoS