172
Novell eDirectory 8.8 Administration Guide
no
vd
ocx
(e
n)
6 Ap
ril 20
07
class-name CDATA #REQUIRED>
<!ELEMENT match-path EMPTY>
<!ATTLIST match-path
prefix CDATA #REQUIRED>
<!ELEMENT match-attr (value)+ >
<!ATTLIST match-attr
attr-name CDATA #REQUIRED>
<!ELEMENT placement (#PCDATA |
copy-name |
copy-attr |
copy-path |
copy-path-suffix)* >
You can have multiple placement-rule elements in the file. Each rule is processed in the order that it
appears in the file. If a record does not match any of the rules, that record is skipped and the skipping
does not generate an error.
The following examples illustrate how to format placement rules. The scr-dn-format="ldap" and
dest-dn-format="ldap" attributes set the rule so that the name space for the dn in the source and
destination is LDAP format.
The Novell Import Conversion Export utility supports source and destination names only in LDAP
format.
Placement Example 1:
The following placement rule requires that the record have a base class of
inetOrgPerson. If the record matches this condition, the entry is placed immediately subordinate to
the test container and the left-most component of its source dn is used as part of its dn.
<placement-rules src-dn-format="ldap" dest-dn-format="ldap">
<placement-rule>
<match-class class-name="inetOrgPerson"></match-class>
<placement>cn=<copy-name/>,o=test</placement>
</placement-rule>
</placement-rules>
With this rule, a record with a base class of inetOrgPerson and with the following dn:
dn: cn=Kim Jones, ou=English, ou=Humanities, o=UofZ
would have the following dn in the destination directory:
dn: cn=Kim Jones, o=test
Placement Example 2:
The following placement rule requires that the record have an sn attribute.
If the record matches this condition, the entry is placed immediately subordinate to the test container
and the left-most component of its source dn is used as part of its dn.
<placement-rules src-dn-format="ldap" dest-dn-format="ldap">
<placement-rule>
<match-attr attr-name="sn"></match-attr>
<placement>cn=<copy-name/>,o=test</placement>
</placement-rule>
</placement-rules>
With this rule, a record with the following dn and sn attribute:
Summary of Contents for EDIRECTORY 8.8 SP2
Page 4: ...novdocx en 6 April 2007...
Page 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 255: ...256 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 406: ...408 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 563: ...566 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 573: ...576 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 601: ...604 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...