The following is part of the script used to produce a report of objects
having a certain ACL.
What do I put in the position indicated by the string

< ??? What goes in here ??? />

to give me the DN of the object referred to by the current node ? This
is required for putting in the report by appending to the lv-MESSAGE
local variable.

I have tried a dozen different variations and have got nowhere. They
seem to give one of
source DN of the object used to trigger this report
The string of ACLs
a blank

Any help much appreciated.

<do-set-local-variable name="lv-Nodes" scope="policy">
<arg-node-set>
<token-query class-name="$lv-ObjectClass$" datastore="src">
<arg-dn>
<token-local-variable name="lv-SearchRoot"/>
</arg-dn>
<arg-string>
<token-text xml:space="preserve">ACL</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
</do-if>
<do-for-each>
<arg-node-set>
<token-local-variable name="lv-Nodes"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable disabled="true" name="lv-current-node"
scope="policy">
<arg-string>
< ??? What goes in here ??? />
</arg-string>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-xpath expression='$current-node/attr[@attr-name =
"ACL"]/value'/>
</arg-node-set>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-xpath op="true">contains($current-node ,
$lv-ACL)</if-xpath>
</and>
</arg-conditions>
<arg-actions>
<do-set-local-variable name="lv-MESSAGE" scope="policy">
<arg-string>
<token-local-variable name="lv-MESSAGE"/>
<token-local-variable name="lv-current-node"/>
<token-text xml:space="preserve"> : </token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="lv-ACL-Count" scope="policy">
<arg-string>
<token-xpath expression="number($lv-ACL-Count) + 1"/>
</arg-string>
</do-set-local-variable>
</arg-actions>
</do-if>
</arg-actions>
</do-for-each>
</arg-actions>
</do-for-each>


--
chall
------------------------------------------------------------------------
chall's Profile: http://forums.novell.com/member.php?userid=34675
View this thread: http://forums.novell.com/showthread.php?t=406311