Article

pnuffer's picture
article
Reads:

12985

Score:
2.5
2.5
4
 
Comments:

0

Using Alternate Mailfile Templates with the Lotus Notes Driver

Author Info

10 October 2007 - 3:32am
Submitted by: pnuffer

Problem

A Forum reader recently asked:

"I'm using the Lotus Notes IDM driver. I need to create users which, under certain circumstances, need another than the default mailfile template. I'm able to create the right conditions with Policy Builder, but I'm having trouble finding the right action(s) to overrule the default mailfile-template setting.

For example, default users just get the mail7.ntf template, but some need a crmmail7.ntf template, based upon certain placement in the eDirectory environment."

Solution

The online documentation for the IDM Driver for Lotus Notes, in section 4.5 Custom Driver Parameters, describes the 'mailfile-template' custom parameter. When used as an attribute on an XDS add element, this parameter overrides the mailfile-template parameter used by the driver configuration.

I would recommend using a policy to insert an XML mailfile-template
attribute into the XDS add element. Using a rule somewhere in a Subscriber
Command Transformation policy similar to the sample below may get you closer to a solution.

<rule>
<description>Insert mailfile-template attribute for appropriate add
commands</description>
  <conditions>
    <and>
      <if-operation op="equal">add</if-operation>
      <if-class-name op="equal">User</if-class-name>
      <if-op-attr name="OU" op="equal">Field Sales</if-op-attr>
    </and>
  </conditions>
  <actions>
    <do-set-xml-attr expression="../add[@class-name='User']"
name="mailfile-template">
      <arg-string>
        <token-text>crmmail7.ntf</token-text>
      </arg-string>
    </do-set-xml-attr>
  </actions>
</rule>



User Comments

© 2013 Novell