Problem

A Forum reader recently asked:

“I’m IDM newbie and I’m having a problem with configuring the Notes Driver. In the Notes configuration file, there is glabal configuration value for “mailfile-path”. I want to assign a specific path (mailfile-path) for different types of user types, such as group1 –>mail\mail1, and group2 —> mail\mail2. I tried to make the policy set the value directly to mailfile, with the mailfile-path attribute, but it still did not work.

Any guidelines on how I could set the multiple mailfile-path?”

And here’s the reply from Geoffrey Carman …

Solution

There are two types of attributes you might need to add to a document, and they are described in the documentation for the Notes driver. For the default policy in the driver, the Sub-Create rule has a policy set called “AddNotesAccount”.

You can use rules like the example below. This basically sets the Notes ID file created to the value of UniqueID.id, and the MailFile name to value of UniqueID.nsf. You can see the verbs; you just need to generate the custom logic to decide when to use it. Enjoy.

<rule>
  <description>Set Mail File Name and Notes.id to UniqueID</description>
  <comment xml:space="preserve">Set the mail file name on user create to 
UniqueID.nsf and ID file to UniqueID.id</comment>
  <comment name="author" xml:space="preserve">Geoffrey Carman</comment>
  <comment name="version" xml:space="preserve">1</comment>
  <comment name="lastchanged" xml:space="preserve">Jan 11, 2007</comment>
  <conditions>
    <and>
      <if-class-name mode="nocase" op="equal">User</if-class-name>
    </and>
  </conditions>
  <actions>
    <do-add-dest-attr-value name="MailFile">
      <arg-value>
        <token-attr name="uniqueID"/>
        <token-text xml:space="preserve">.nsf</token-text>
      </arg-value>
    </do-add-dest-attr-value>
    <do-set-xml-attr expression="../add[@class-name='User']"
name="user-id-file">
      <arg-string>
        <token-attr name="uniqueID"/>
        <token-text xml:space="preserve">.id</token-text>
      </arg-string>
    </do-set-xml-attr>
  </actions>
</rule>
0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
geoffc
By: geoffc
Mar 28, 2007
7:29 am
Reads:
1,014
Score:
Unrated