Knowledge Partner
Knowledge Partner
164 views

Re: Append Attributes to Add Destination Object Action

On Thu, 14 Jun 2012 16:26:01 +0000, rhettplace wrote:

> 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?


<do-add-dest-object class-name="Groupwise Nickname" when="after">
<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"
when="after">
<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"
when="after">
<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"
when="after">
<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"
when="after">
<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>
</actions>

I made two changes to your rules. One is to have when="after" on them,
mostly because that's the way I've done similar things in the past. See
if you can spot the other change, which turns out to be important.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.novell.com

Please post questions in the forums. No support provided via email.

Labels (1)
0 Likes
6 Replies
Knowledge Partner
Knowledge Partner

Re: Append Attributes to Add Destination Object Action

On 14.06.2012 20:47, David Gersic wrote:
> I made two changes to your rules. One is to have when="after" on them,
> mostly because that's the way I've done similar things in the past. See
> if you can spot the other change, which turns out to be important.


That is a subtle but key difference. Good catch.


Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Append Attributes to Add Destination Object Action

Alex McHugh <alexmchugh@no-mx.forums.novell.com> wrote:

> On 14.06.2012 20:47, David Gersic wrote:
>> I made two changes to your rules. One is to have when="after" on them,
>> mostly because that's the way I've done similar things in the past. See
>> if you can spot the other change, which turns out to be important.

>
> That is a subtle but key difference. Good catch.
>
>
>


The correct way to do it is to make sure you specify the same dn on the
attributes as you specified on the object add. Otherwise the default target
is going to be the current object (the one from the original event, whose
dest-dn is probably missing at this point), not the one from the add.


--
Shon

0 Likes
Knowledge Partner
Knowledge Partner

Re: Append Attributes to Add Destination Object Action

On Fri, 15 Jun 2012 03:04:26 +0000, Shon Vella wrote:

> Alex McHugh <alexmchugh@no-mx.forums.novell.com> wrote:
>
>> On 14.06.2012 20:47, David Gersic wrote:
>>> I made two changes to your rules. One is to have when="after" on them,
>>> mostly because that's the way I've done similar things in the past.
>>> See if you can spot the other change, which turns out to be important.

>>
>> That is a subtle but key difference. Good catch.
>>

> The correct way to do it is to make sure you specify the same dn on the
> attributes as you specified on the object add. Otherwise the default
> target is going to be the current object (the one from the original
> event, whose dest-dn is probably missing at this point), not the one
> from the add.


He did have the same DN, even using the same local-variable to specify it
so it can't be different:


<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>

But he had a different object class in case only, so "Groupwise Nickname"
is not the same as "GroupWise Nickname". I'm not sure if I'd call that a
feature or a bug.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.novell.com

Please post questions in the forums. No support provided via email.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Append Attributes to Add Destination Object Action

David Gersic <dgersic@no-mx.forums.novell.com> wrote:

> He did have the same DN, even using the same local-variable to specify it  
> so it can't be different: 
>  


Oops, missed that.

>  
> But he had a different object class in case only, so "Groupwise Nickname"  
> is not the same as "GroupWise Nickname". I'm not sure if I'd call that a  
> feature or a bug. 


Class name is optional on the do-add-dest-attr-value, but if it is there it
needs to match the one on the add exactly.
--
Shon

0 Likes
Knowledge Partner
Knowledge Partner

Re: Append Attributes to Add Destination Object Action

On Fri, 22 Jun 2012 04:06:14 +0000, Shon Vella wrote:

> Class name is optional on the do-add-dest-attr-value, but if it is
> there it
> needs to match the one on the add exactly.


Yeah, I found that by experimentation. Is that deliberate, then?


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.novell.com

Please post questions in the forums. No support provided via email.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Append Attributes to Add Destination Object Action

David Gersic <dgersic@no-mx.forums.novell.com> wrote:

> On Fri, 22 Jun 2012 04:06:14 +0000, Shon Vella wrote:
>
>> Class name is optional on the do-add-dest-attr-value, but if it is
>> there it
>> needs to match the one on the add exactly.

>
> Yeah, I found that by experimentation. Is that deliberate, then?
>
>
>


I don't recall - it's been a long time since I've had my hands in IDM
code. Best guess is that it should not be case sensitive and is
therefore a bug, albeit a very minor one.
--
Shon

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.