The format for the Novell Query Processor is shown below, along with a description of the parameters and a few examples.

The parameters are described below:

  • scope – “entry”, “subtree”, or “subordinates”
  • association – association value to use for query
  • srcDN/destDN – src-dn or dest-dn value to use for query – depends on $srcQueryProcessor or $destQueryProcessor
  • className – object class name (empty string to search all classes)
  • searchAttr – attribute to search on (empty string to not limit by attribute value)
  • searchValue – string value to search on for search attr
  • attrs – comma separated list of attributes to read, empty to read no attributes, * to read all attributes
<do-set-local-variable name="varResourceQuery">
    <arg-node-set>
        <token-xpath expression='query:search($srcQueryProcessor,"subtree","","~gcvLocation-Entitlement-Groups~","","~gcvAttribute-Resource-AppAssociation~",$varEntitlementParamKey,"DirXML-Associations")'/>
    </arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="varSearchCurrentDestDN">
    <arg-node-set>
        <token-xpath expression='query:search($srcQueryProcessor,"entry","",@dest-dn,"User","","","")/@src-dn'/>
    </arg-node-set>
</do-set-local-variable>
<do-set-xml-attr expression="../modify[last()]" name="qualified-src-dn">
    <arg-string>
        <token-xpath expression='query:search($srcQueryProcessor,"entry","",$varUser-Owner-Removed,"","","","")/@qualified-src-dn'/>
    </arg-string>
</do-set-xml-attr>
<do-set-local-variable name="varQueryResult" scope="policy">
    <arg-node-set>
        <token-xpath expression='query:search($srcQueryProcessor,"subtree","","~gcvLocation-Root~","User","uniqueID",$varGeneratedName,"uniqueID")'/>
    </arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="varManager" scope="policy">
    <arg-string>
    <token-xpath expression="./operation-data/is-manual-transfer/@transfer-to"/>
    </arg-string>
</do-set-local-variable>

<do-set-local-variable name="varManager-LDAP">
    <arg-string>
        <token-parse-dn dest-dn-format="ldap" src-dn-format="qualified-slash">
        <token-xpath expression='query:search($destQueryProcessor,"entry","",$varManager,"","","","")/@qualified-src-dn'/>
        </token-parse-dn>
    </arg-string>
</do-set-local-variable>