Below is a sample ADD Event policy rule to submit database replication parameters on behalf of a newly created mailfile:
<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>
Below is a sample ADD Event containing mailfile database replication attribute tags as they are submitted to the Notes Driver shim. This sample modifies the replication settings of the newly created mailfile of the new Notes user and also creates a replica on server 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>
Sample Modify Event policy rule to submit database replication parameters:
<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>
Sample Modify Event containing database replication attribute tags as submitted to the Notes Driver shim. This sample modifies the synchronized .nsf database (in this case 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>