Home

Results 1 to 7 of 7

Thread: Re: Append Attributes to Add Destination Object Action

  1. #1

    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.


  2. #2
    Join Date
    Jan 2009
    Location
    Stavanger, Norway
    Posts
    1,729

    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.



  3. #3
    Shon Vella NNTP User

    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


  4. #4

    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.


  5. #5
    Shon Vella NNTP User

    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*s ure*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


  6. #6

    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.


  7. #7
    Shon Vella NNTP User

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •