Question: My Notes Driver's policy inserts a specific ClientType field when new Notes users are created (Lotus Notes Driver Tip). After the creation is done, the new Notes User's ClientType field has two entries on the person document. One of '0' representing Notes Client, and one of '4' representing Notes Administrator which was set by the driver's policy. How do I get rid of the '0' - Notes Client value?
Answer: This problem can arise due to the Notes Driver registration process. As the Notes Driver registers users, the ClientType field is automatically populated, then the Notes driver policies add an additional attribute to the ClientType field. One way to fix this issue is to remove the ClientType value of 0 placed by the registration process from the person document, after the add command has completed.
First, insert the desired ClientType field value with driver policy. Place something similar to the following rule somewhere in the Creation Policy chain (or if you want to place it in the Command Transform Policy chain insert a <if-operation op="equal">add</if-operation> to the conditions):
<description>Add Notes Client Type Field</description>
<if-op-attr name="Title" op="equal">Administrator</if-op-attr>
<do-add-dest-attr-value class-name="User" name="ClientType">
This example recognizes that the eDir Title attribute is set to Administrator...then sets the ClientType to 4. Your solution may not need to recognize any eDir attribute, but at least set the ClientType to some value other than the default '0'. The following policy completes the work, by detecting the add-association and removing the value of '0' placed on the Notes person document by the Notes registration process. Place the following rule somewhere in the Input Transformation Policy chain:
<description>Check add-association for operation data indicating the need to remove client type value of 'Lotus Notes'</description>
<if-op-property name="remove-lotus-notes-client-type" op="equal">0</if-op-property>
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.