I am sure this has been answered before but "Search Forums" doesn't
yield to much positive result...so I am going to ask again.

Working on querying an attribute called directReports, which is
multivalued in AD. I am not sure how to put it inside a variable and
use a for-each loop to interprete/manipulate each value based of the
result of the query (assuming it is called output doc). For example, it
will provide a trace when there is something in directReports attribute,
and I have tried the following:

<do-set-local-variable name="DirectReports" scope="policy">
<arg-node-set>
<token-src-attr name="directReports"/>
</arg-node-set>
</do-set-local-variable>

<do-for-each>
<arg-node-set>
<token-xpath expression="$DirectReports//instance"/>
</arg-node-set>
<arg-actions>
<do-trace-message>
<arg-string>
<token-xpath
expression='$DirectReports/attr[@attr-name="directReports"]/value'/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">dumbTrace</token-text>
</arg-string>
</do-trace-message>
</arg-actions>
</do-for-each>

Based on the trace, it came back with empty token value and will not
loop...I must be making a very silly mistake or my knowledge on token is
a bit weak... But please help correct me...Thank you very much.


--
vzlchan
------------------------------------------------------------------------
vzlchan's Profile: https://forums.netiq.com/member.php?userid=4473
View this thread: https://forums.netiq.com/showthread.php?t=53405