Not the best XPath person here so asking the experts. The below
expression crashes anytime the DN is uppercased or different. I’m trying
to write-back the CN value from my Vault to PeopleSoft transaction
table.

So anytime the following DN’s are received from PeopleSoft events
“DATA\USERS\UserName” or “DATA\ARCHIVE\UserName” the local variable name
VARpeoplesoft-cn is blank.

If the DN is received lowercase “Data\Users” works. Anyway to trim out
the CN value from right to left given the DN could be anything?

It will always be the below three cases.
•DATA\USERS\UserName
•DATA\ARCHIVE\UserName
•Data\Users\UserName

<do-set-local-variable name="VARpeoplesoft-cn" scope="policy">
<arg-node-set>
<token-xpath
expression='substring-after($VARpeoplesoft-dn,"Data\Users\")'/>
</arg-node-set>
</do-set-local-variable>
<do-add-dest-attr-value direct="true" name="DIRXML_USERID">
<arg-association>
<token-xpath expression="operation-data/peoplesoft-src-id"/>
</arg-association>
<arg-value type="string">
<token-local-variable name="VARpeoplesoft-cn"/>
</arg-value>


--
rsw4723
------------------------------------------------------------------------
rsw4723's Profile: http://forums.novell.com/member.php?userid=8590
View this thread: http://forums.novell.com/showthread.php?t=387149