Deprecated as of DirXML 2.0 - use DirXMLScript <policy>.

<matching-rules> is the top level (document) element for object matching rules. Object matching rules are stored in the DirXML-XmlData attribute of a DirXML-Rule object that is pointed to by the DirXML-MatchingRule attribute of a DirXML-Subscriber or DirXML-Publisher object.

In the Subscriber channel, the source is eDirectory, and the destination is the application. In the Publisher channel the source is the application and the destination is eDirectory.

Object matching rules are used to to try to find a matching object in the destination for an unassociated object in the source as a result of an <add> event in the source. (Note that DirXML automatically converts <modify> into <add> for events from unassociated objects). Object matching rules are applied before deciding if a new object should be created in the destination.

<matching-rules> will contain 0 or more <matching-rule> elements. The matching rule processor will evaluate each <matching-rule> in order until one or more matching objects in the destination are found.

If exactly one matching object is found, that object will be automatically associated with the source object and DirXML will attempt to reconcile any differences in the attribute values of the two objects as allowed by the Publisher and Subscriber filters.

If more than one matching object is found, an error will be signaled and the object will either have to be manually associated or the object matching rules will have to be modified to be more specific.

If no matching objects are found, DirXML will continue processing the event.


<!-- for Users, first try to match on Surname, Given Name and Location -->
<match-class class-name="User"/>
<match-attr attr-name="Surname"/>
<match-attr attr-name="Given Name"/>
<match-attr attr-name="Location"/>
<!-- for Users, then try to match on Surname only in -->
<!-- the o=novell subtree -->
<match-class class-name="User"/>
<match-path prefix="o=novell"/>
<match-attr attr-name="Surname"/>
<!-- for all classes try to match on CN only -->
<match-attr attr-name="CN"/>

1. Allowed Content

Object matching rule. Deprecated as of DirXML 2.0.

2. No Attributes

3. Content Rule

( matching-rule * )

4. Parent Elements


Top Elements || All Elements || Tree