
Novell eDirectory Management Utilities
175
n
ov
do
cx (e
n)
11
Ju
ly 20
08
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">
<value>Provo</value>
</required-attr>
</create-rule>
</create-rules>
Create Rule 2:
The following create rule places three conditions on all add records, regardless of
their base class:
The record must contain a givenName attribute. If it doesn't, the add fails.
The record must contain a Surname attribute. If it doesn't, the add fails.
The record must contain an L attribute. If it doesn't, the attribute is set to a value of Provo.
<create-rules>
<create-rule>
<required-attr attr-name="givenName"/>
<required-attr attr-name="Surname"/>
<required-attr attr-name="L">
<value>Provo</value>
</required-attr>
</create-rule>
</create-rules>
Create Rule 3:
The following create rule places two conditions on all records, regardless of base
class:
The rule checks to see if the record has a uid attribute with a value of ratuid. If it doesn't, the
add fails.
The rule checks to see if the record has an L attribute. If it does not have this attribute, the L
attribute is set to a value of Provo.
<create-rules>
<create-rule>
<match-attr attr-name="uid">
<value>cn=ratuid</value>
</match-attr>
<required-attr attr-name="L">
<value>Provo</value>
</required-attr>
</create-rule>
</create-rules>
Содержание EDIRECTORY 8.8 SP3
Страница 4: ...novdocx en 11 July 2008...
Страница 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 120: ...120 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 132: ...132 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 190: ...190 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 238: ...238 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 262: ...262 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 288: ...288 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 320: ...320 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 348: ...348 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 388: ...388 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 492: ...492 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 586: ...586 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 599: ...The eDirectory Management Toolbox 599 novdocx en 11 July 2008 Click Help for details...
Страница 600: ...600 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 614: ...614 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...