this is what i tried to do in my matching policy - get the treename (for
i want to be able to use the same driver in different trees without the
need to reconfigure (for example the tree-name).

<do-set-local-variable name="drv_treename" scope="driver">
<arg-string>
<token-query class-name="Tree Root" scope="entry">
<arg-string>
<token-text xml:space="preserve">T</token-text>
</arg-string>
</token-query>
</arg-string>

somehow this does not work - i get an empty result set, see the
trace-output:
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:Applying
object matching policies.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:Applying
policy: 'Default publisher matching policy'.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Applying to
add #1.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Evaluating selection criteria for rule 'User Match'.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
(if-class-name equal "User") = TRUE.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Rule
selected.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Applying
rule 'User Match'.
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Action:
do-find-matching-object(scope="subtree",arg-dn(token-local-variable("drv_treename")+"\mycorp\department+token-local-variable("drv_mycorpdepartment")),arg-match-attr("Surname",token-local-variable("drv_user_surname")),arg-match-attr("Given
Name",token-local-variable("drv_user_givenname"))).
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
arg-dn(token-local-variable("drv_treename")+"\mycorp\department+token-local-variable("drv_mycorpdepartment"))
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
token-local-variable("drv_treename")
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Token Value: "".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
token-text("\mycorp\department)
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
token-local-variable("drv_mycorpdepartment")
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Token Value: "DEV".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Arg
Value: "\mycorp\mDEV".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
arg-match-attr("Surname",token-local-variable("drv_user_surname"))
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
arg-string(token-local-variable("drv_user_surname"))
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
token-local-variable("drv_user_surname")
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Token Value: "Doe".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Arg Value: "Doe".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
arg-match-attr("Given
Name",token-local-variable("drv_user_givenname"))
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
arg-string(token-local-variable("drv_user_givenname"))
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
token-local-variable("drv_user_givenname")
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Token Value: "John".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:
Arg Value: "John".
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT: Query
from policy
[10.01.2008 14:51:59.30] Drvrs : INFO : orga_2008 PT:

unfortunately available documentation does not give me enough info to
solve that by myself. > any ideas?


--
Florian Zimmermann
------------------------------------------------------------------------
Florian Zimmermann's Profile: http://forums.novell.com/member.php?userid=210
View this thread: http://forums.novell.com/showthread.php?t=306806