B.6 複製屬性標籤

B.6.1 資料庫複製的新增事件規則

以下的範例「新增事件」規則會代表新建立的郵件檔案提交資料庫複製參數:

<rule> <description>Add User E-Mail: Mail File Replication Settings</description> <conditions> <and> <if-operation op="equal">add</if-operation> <if-class-name mode="nocase" op="equal">User</if-class-name> </and> </conditions> <actions> <do-set-xml-attr expression="../add" name="mailfile-rep-new-server"> <arg-string> <token-text xml:space="preserve">CN=server1/O=novell</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add” name="mailfile-rep-new-db-name"> <arg-string> <token-text>mail/daffyduck_rep1.nsf</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-dest-server"> <arg-string> <token-text xml:space="preserve">CN=server1/O=novell</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-priority"> <arg-string> <token-text>LOW</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-src-server"> <arg-string> <token-text xml:space="preserve">CN=server2/O=novell</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-include-acl"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-include-agents"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-include-documents"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-include-forms"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-include-formulas"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-view-list"> <arg-string> <token-text xml:space="preserve">Inbox;Sent;Calendar;Meetings</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-cutoff-interval"> <arg-string> <token-text>240</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-dont-send-local-security-updates"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-abstract"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-cutoff-delete"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-disabled"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-ignore-deletes"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-ignore-dest-deletes"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-clear-history"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-entry-remove"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../add" name="mailfile-rep-immediate"> <arg-string> <token-text>CN=server1/O=novell</token-text> </arg-string> </do-set-xml-attr> </actions> </rule>

B.6.2 提交給 Shim 的郵件檔案資料庫複製屬性標籤

以下的範例「新增事件」包含提交至 Notes 驅動程式 Shim 的郵件檔案資料庫複製屬性標籤。 此範例會修改新 Notes 使用者新建立之郵件檔案的複製設定,還會在 CN=server1/O=novell 的伺服器上建立複製本。

<nds dtdversion="2.0" ndsversion="8.x"> <source> <product version="2.0.8.20050127 ">Identity Manager</product> <contact>Novell, Inc.</contact> </source> <input> <add	certify-user="true" class-name="Person" create-mail="true" dest-dn="CN=DaffyDuck/OU=eng/O=novell" drv-param-cert-id="eng-cert-id-file" drv-param-cert-pwd="eng-cert-id-password" event-id="BLACKCAP-NDS#20050331215122#1#1" mail-acl-manager-name="CN=Notes Driver/O=novell" mailfile-rep-abstract="false" mailfile-rep-clear-history="false" mailfile-rep-cutoff-delete="false" mailfile-rep-cutoff-interval="240" mailfile-rep-dest-server="CN=server1/O=novell" mailfile-rep-disabled="false" mailfile-rep-dont-send-local-security-updates="false" mailfile-rep-entry-remove="false" mailfile-rep-ignore-deletes="false" mailfile-rep-ignore-dest-deletes="false" mailfile-rep-immediate="CN=server1/O=novell" mailfile-rep-include-acl="true" mailfile-rep-include-agents="true" mailfile-rep-include-documents="true" mailfile-rep-include-forms="true" mailfile-rep-include-formulas="true" mailfile-rep-new-db-name="mail/daffyduck_rep1.nsf" mailfile-rep-new-server="CN=server1/O=novell" mailfile-rep-priority="LOW" mailfile-rep-src-server="CN=server2/O=novell" mailfile-rep-view-list="Inbox;Sent;Calendar;Meetings" qualified-src-dn="O=DirXML\OU=Notes\OU=Users\OU=eng\CN=DaffyDuck" src-dn="\novell_tree\DirXML\Notes\Users\eng\DaffyDuck" src-entry-id="40729" timestamp="1112305882#22"> <add-attr attr-name="FullName"> <value timestamp="1112305882#22" type="string">DaffyDuck</value> </add-attr> <add-attr attr-name="LastName"> <value timestamp="1112305882#7" type="string">Duck</value> </add-attr> <add-attr attr-name="FirstName"> <value timestamp="1112305882#5" type="string">Daffy</value> </add-attr> <add-attr attr-name="InternetAddress"> <value>DaffyDuck@novell.com</value> </add-attr> </add> </input> </nds>

B.6.3 範例修改事件規則

提交資料庫複製參數的範例「修改事件」規則:

<rule> <description>Modify Group - Apply Database Replication Parameters</description> <conditions> <and> <if-operation op="equal">modify</if-operation> <if-class-name mode="nocase" op="equal">Group</if-class-name> </and> </conditions> <actions> <do-set-xml-attr expression="../modify" name="rep-dest-server"> <arg-string> <token-text xml:space="preserve">CN=server1/O=novell</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-priority"> <arg-string> <token-text>HIGH</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-src-server"> <arg-string> <token-text xml:space="preserve">CN=server2/O=novell</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-include-acl"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-include-agents"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-include-documents"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-include-forms"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-include-formulas"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-view-list"> <arg-string> <token-text xml:space="preserve">People;People By Category;Groups;Groups By Category</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-cutoff-interval"> <arg-string> <token-text>240</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-dont-send-local-security-updates"> <arg-string> <token-text>true</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-abstract"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-cutoff-delete"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-disabled"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-ignore-deletes"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-ignore-dest-deletes"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-clear-history"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-entry-remove"> <arg-string> <token-text>false</token-text> </arg-string> </do-set-xml-attr> <do-set-xml-attr expression="../modify" name="rep-immediate"> <arg-string> <token-text>CN=server1/O=novell</token-text> </arg-string> </do-set-xml-attr> </actions> </rule>

B.6.4 提交至 Shim 的修改事件屬性標籤

包含提交至 Notes 驅動程式 Shim 之資料庫複製屬性標籤的範例「修改事件」。 此範例會修改同步 .nsf 資料庫 (在本例中為 names.nsf):

<nds dtdversion="2.0" ndsversion="8.x"> <source> <product version="2.0.8.20050127 ">Identity Manager</product> <contact>Novell, Inc.</contact> </source> <input> <modify	   	class-name="Group" event-id="BLACKCAP-NDS#20050401191642#1#1" qualified-src-dn="O=DirXML\OU=Notes\OU=Groups\CN=Engineering" rep-abstract="false" rep-clear-history="false" rep-cutoff-delete="false" rep-cutoff-interval="240" rep-dest-server="CN=server1/O=novell" rep-disabled="false" rep-dont-send-local-security-updates="true" rep-entry-remove="false" rep-ignore-deletes="false" rep-ignore-dest-deletes="false" rep-immediate="CN=server1/O=novell" rep-include-acl="true" rep-include-agents="true" rep-include-documents="true" rep-include-forms="true" rep-include-formulas="true" rep-priority="HIGH" rep-src-server="CN=server2/O=novell" rep-view-list="People;People By Category;Groups;Groups By Category" src-dn="\novell_tree\DirXML\Notes\Groups\Engineering" src-entry-id="40743" timestamp="1112383002#1"> <association state="associated">3EEB6FC36CBE4D3687256FD60069C721</association> <modify-attr attr-name="ListDescription"> <add-value> <value timestamp="1112383002#1" type="string">Software Engineering Group</value> </add-value> </modify-attr> </modify> </input> </nds>