Hi there,

thought this would work but the trace never lies. I want to parse a DN
so as to remove the first three root most nodes (start=3) and remove the
last node (length = -2).

=====

14:57:43 TXT: PT: Action:
do-set-op-dest-dn(arg-dn(token-global-variable("idv.dit.data.users")+"\"+token-parse-dn(length="-2",src-dn-format="src-dn",start="3",token-local-variable("managerDN"))+"\"+token-local-variable("DestCN"))).
14:57:43 TXT: PT:
arg-dn(token-global-variable("idv.dit.data.users")+"\"+token-parse-dn(length="-2",src-dn-format="src-dn",start="3",token-local-variable("managerDN"))+"\"+token-local-variable("DestCN"))
14:57:43 TXT: PT: token-global-variable("idv.dit.data.users")
14:57:43 TXT: PT: Token Value: "Meta\Org".
14:57:43 TXT: PT: token-text("\")
14:57:43 TXT: PT:
token-parse-dn(length="-2",src-dn-format="src-dn",start="3",token-local-variable("managerDN"))
14:57:43 TXT: PT:
token-parse-dn(length="-2",src-dn-format="src-dn",start="3",token-local-variable("managerDN"))
14:57:43 TXT: PT: token-local-variable("managerDN")
14:57:43 TXT: PT: Token Value:
"\META_TREE2\Meta\Org\Newbridge\Test\29MayD".
14:57:43 TXT: PT: Arg Value:
"\META_TREE2\Meta\Org\Newbridge\Test\29MayD".
14:57:43 TXT: PT: Token Value: "Newbridge\Test\29MayD".

The Token Value for "managerDN" is correct as
"\META_TREE2\Meta\Org\Newbridge\Test\29MayD"

The resulting Token Value is partially correct as
"\META_TREE2\Meta\Org\" was removed, with the result of
"Newbridge\Test\29MayD" but the 29MayD did not get removed?


--
kmaule
------------------------------------------------------------------------
kmaule's Profile: https://forums.netiq.com/member.php?userid=306
View this thread: https://forums.netiq.com/showthread.php?t=48406