I have the GroupWise driver installed from the IDM 4.0.1 AE ISO and have the driver running with the default policies along with some customizations for our placement rules in my development environment. I am now trying to create a rule to handle duplicate email addresses. We are using Firstname.Lastname in GroupWise for our users and have about 5000 users so we get a few duplicate names. Our manual process is to add the middle initial to the email address so it becomes Firstname.MI.Lastname. If this is still a duplicate, we will add a number to the end of the email address until we get a unique address. The documentation mentions a special query in the GroupWise driver for email addresses but not how to use it. I've tried to incorporate part of another thread but that doesn't seem to work either. Here is the XML from Policy Builder for the Rule in the Subscriber Creation Policy and the error message from a level 3 trace. The other thing I don't understand is how to set the value of 56 (0x38) into attribute 50320 so it will only use the email address that I have entered and Full, Host, and UserID but only when we had to use something other than firstname.lastname for the email address. We normally allow all of the variations to be used.
Creation Policy
<rule>
<description>Check names for unique email with Initials</description>
<comment xml:space="preserve">Check firstname.lastname and then firstname.initial.lastname to see if we can use the names.</comment>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-attr name="Initials" op="available"/>
</and>
</conditions>
<actions>
<do-set-dest-attr-value name="50319">
<arg-value type="string">
<token-unique-name counter-digits="1" counter-pad="false" counter-pattern="all" counter-start="1" counter-use="fallback" name="50319" on-unavailable="error">
<arg-string>
<token-lower-case>
<token-src-attr name="Given Name"/>
</token-lower-case>
<token-text xml:space="preserve">.</token-text>
<token-lower-case>
<token-src-attr name="Surname"/>
</token-lower-case>
</arg-string>
<arg-string>
<token-lower-case>
<token-src-attr name="Given Name"/>
</token-lower-case>
<token-text xml:space="preserve">.</token-text>
<token-lower-case>
<token-src-attr name="Initials"/>
</token-lower-case>
<token-text xml:space="preserve">.</token-text>
<token-lower-case>
<token-src-attr name="Surname"/>
</token-lower-case>
</arg-string>
</token-unique-name>
</arg-value>
</do-set-dest-attr-value>
</actions>
</rule>
Level 3 Trace
[09/06/12 17:12:28.311]:GroupWise Driver :Remote Interface Driver: Received document for subscriber channel
[09/06/12 17:12:28.313]:GroupWise Driver :Remote Interface Driver: Waiting for receive...
[09/06/12 17:12:28.314]:GroupWise Driver ST:SubscriptionShim.execute() returned:
[09/06/12 17:12:28.315]:GroupWise Driver ST:
<nds dtdversion="2.0" ndsversion="8.x">
<source>
<product build="20090305_0422" instance="GroupWise Driver" version="3.5.3 (linux)">DirXML Driver for GroupWise</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status code="javax.naming.directory.AttributeInUseExcepti on: An error occurred modifying an attribute value. The email address &quot;dale.test1@psoft-qa.childrenshc.org&quot; is already being used by dptest1.mps-po.mps-dom (0xDB57); remaining name &apos;cpt-dom.cpt-po.dptest5&apos;" event-id="vcedirtest1#20120906221225#2#1:dd25552c-f63e-4377-379c-2c5525dd3ef6" level="error" type="app-general">
<code>javax.naming.directory.AttributeInUseExcepti on: An error occurred modifying an attribute value. The email address "dale.test1@psoft-qa.childrenshc.org" is already being used by dptest1.mps-po.mps-dom (0xDB57); remaining name 'cpt-dom.cpt-po.dptest5'</code>
<description>GroupWise Error</description>
<object-dn>\PSOFT-FP\CHC\CPT\dptest5</object-dn>
</status>
</output>
</nds>