Novell eDirectory Management Utilities
169
no
vd
ocx (
E
NU)
01
F
ebr
ua
ry
200
6
Create Rules
Create rules specify the conditions for creating a new entry in the destination directory. They support
the following elements:
• Required Attributes
specifies that an add record must have values for all of the required
attributes, or else the add fails. The rule can supply a default value for a required attribute. If a
record does not have a value for the attribute, the entry is given the default value. If the record
has a value, the record value is used.
• Matching Attributes
specifies that an add record must have the specific attributes and match
the specified values, or else the add fails.
• Templates
specifies the distinguished name of a Template object in eDirectory. The Novell
Import Conversion Export utility does not currently support specifying templates in create
rules.
The following is the formal DTD definition for create rules:
<!ELEMENT create-rules (create-rule)*>
<!ELEMENT create-rule (match-attr*,
required-attr*,
template?) >
<!ATTLIST create-rule
class-name CDATA #IMPLIED
description CDATA #IMPLIED>
<!ELEMENT match-attr (value)+ >
<!ATTLIST match-attr
attr-name CDATA #REQUIRED>
<!ELEMENT required-attr (value)*>
<!ATTLIST required-attr
attr-name CDATA #REQUIRED>
<!ELEMENT template EMPTY>
<!ATTLIST template
template-dn CDATA #REQUIRED>
You can have multiple create 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 create rules.
Create Rule 1:
The following rule places three conditions on add records that belong to the
inetOrgPerson class. These records must have givenName and Surname attributes. They should
have an L attribute, but if they don't, the create rule supplies a default value of Provo for them.
<create-rules>
<create-rule class-name="inetOrgPerson">
<required-attr attr-name="givenName"/>
<required-attr attr-name="surname"/>
<required-attr attr-name="L">
Содержание EDIRECTORY 8.8 - GUIDE
Страница 4: ...novdocx ENU 01 February 2006...
Страница 16: ...16 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 68: ...68 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 90: ...90 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 184: ...184 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 249: ...250 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 307: ...308 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 333: ...334 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 371: ...372 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 439: ...440 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 519: ...520 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 529: ...530 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 555: ...556 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...