On 6/14/2012 12:26 PM, rhettplace wrote:
>
> The documentation for the GroupWise driver shows that in order to create
> a nickname for a GW account the following XDS message must be
> generated;
>


I responded in a previous thread, and it looks like you fixed that
issue, in this separate thread of specifying the DN.

What you did should have worked. But the engine for some reason I have
not entirely divined will split the events up.

What you can do is build the XML by hand. Here is an example of the Add
dest object, then at least 4 of the actions you need to add an
<add-value> node. Might want to set the @type on the value node, not
sure if the shim cares or not.

<rule>
<description>test</description>
<conditions>
<and/>
</conditions>
<actions>
<do-add-dest-object class-name="Groupwise Nickname">
<arg-dn>
<token-local-variable name="user-po"/>
</arg-dn>
</do-add-dest-object>
<do-append-xml-element expression="../add[@class-name='Groupwise
Nickname']" name="add-attr"/>
<do-append-xml-element expression="../add[@class-name='Groupwise
Nickname']/add-attr[last()]" name="value"/>
<do-set-xml-attr expression="../add[@class-name='Groupwise
Nickname']/add-attr[last()]" name="attr-name">
<arg-string>
<token-text xml:space="preserve">50070</token-text>
</arg-string>
</do-set-xml-attr>
<do-append-xml-text expression="../add[@class-name='Groupwise
Nickname']/add-attr[last()]/value[last()]">
<arg-string>
<token-local-variable name="user-cn"/>
</arg-string>
</do-append-xml-text>
</actions>
</rule>



> Code:
> --------------------
>
> <add class-name="GroupWise Nickname" dest-dn="Novell\dirxml\groupwise\xmlPO" event-id="0" >
> <!-- Domain of user this nickname refers to -->
> <add-attr attr-name="50068" >
> <value type="string">xmlDom</value>
> </add-attr>
> <!-- Post Office of user this nickname refers to -->
> <add-attr attr-name="50069" >
> <value type="string">xmlPO</value>
> </add-attr>
> <!-- user this nickname refers to -->
> <add-attr attr-name="50070" >
> <value type="string">Usern1</value>
> </add-attr>
> <!-- name of nickname record -->
> <add-attr attr-name="50073" >
> <value type="string">nn1</value>
> </add-attr>
> </add>
>
> --------------------
>
>
> However, the "add destination object" action does not supply any inputs
> for appending attributes along with the new object. Here is the code I
> am using;
>
>
> Code:
> --------------------
>
> <do-add-dest-object class-name="Groupwise Nickname">
> <arg-dn>
> <token-local-variable name="user-po"/>
> </arg-dn>
> </do-add-dest-object>
> <do-add-dest-attr-value class-name="GroupWise Nickname" name="50068">
> <arg-dn>
> <token-local-variable name="user-po"/>
> </arg-dn>
> <arg-value type="string">
> <token-local-variable name="user-domain"/>
> </arg-value>
> </do-add-dest-attr-value>
> <do-add-dest-attr-value class-name="GroupWise Nickname" name="50069">
> <arg-dn>
> <token-local-variable name="user-po"/>
> </arg-dn>
> <arg-value type="string">
> <token-local-variable name="user-po"/>
> </arg-value>
> </do-add-dest-attr-value>
> <do-add-dest-attr-value class-name="GroupWise Nickname" name="50070">
> <arg-dn>
> <token-local-variable name="user-po"/>
> </arg-dn>
> <arg-value type="string">
> <token-local-variable name="user-cn"/>
> </arg-value>
> </do-add-dest-attr-value>
> <do-add-dest-attr-value class-name="GroupWise Nickname" name="50073">
> <arg-dn>
> <token-local-variable name="user-po"/>
> </arg-dn>
> <arg-value type="string">
> <token-local-variable name="user-nickname"/>
> </arg-value>
> </do-add-dest-attr-value>
>
> --------------------
>
>
> Which renders the following output...
>
>
> Code:
> --------------------
>
> <add class-name="Groupwise Nickname" dest-dn="MAIL\GWPO05" event-id="0"/>
> <modify class-name="GroupWise Nickname" dest-dn="MAIL\GWPO05" event-id="0">
> <modify-attr attr-name="50068">
> <add-value>
> <value type="string">domain.com</value>
> </add-value>
> </modify-attr>
> <modify-attr attr-name="50069">
> <add-value>
> <value type="string">MAIL\GWPO05</value>
> </add-value>
> </modify-attr>
> <modify-attr attr-name="50070">
> <add-value>
> <value type="string">User1</value>
> </add-value>
> </modify-attr>
> <modify-attr attr-name="50073">
> <add-value>
> <value type="string">UserNickname@domain.com</value>
> </add-value>
> </modify-attr>
> </modify>
>
> --------------------
>
>
> The major question is, how do I get the attributes to be part of the
> "add" tag for the destination object instead of creating a "modify" tag?
>
>