Two things. . .
1) Ultimately I'm trying to map users in about 40 eDir OU's to a
similar number but differently named AD OU's. I figured the best way
was to build a map with the souce and destination OUs. Any documents or
references detailing this would be great.

2) I've created a map and rule but the rule only returns the default
value. I simplified as much as possible trying to just use text (copied
from the source of the map) on the map. Here's the details:

---- Level 3 Trace ---
[06/16/11 05:48:01.219]:Trace ID Five ST:Applying policy:
%+C%14CDestination%-C.
[06/16/11 05:48:01.219]:Trace ID Five ST: Applying to add #1.
[06/16/11 05:48:01.219]:Trace ID Five ST: Evaluating selection
criteria for rule 'SetDestination'.
[06/16/11 05:48:01.219]:Trace ID Five ST: (if-class-name equal
"User") = TRUE.
[06/16/11 05:48:01.219]:Trace ID Five ST: Rule selected.
[06/16/11 05:48:01.220]:Trace ID Five ST: Applying rule
'SetDestination'.
[06/16/11 05:48:01.220]:Trace ID Five ST: Action:
do-set-op-dest-dn(arg-dn("O=idm"+token-map("Source to
Destination","eDirContainer","ADTarget",default-value="ou=NotAssigned"))).
[06/16/11 05:48:01.220]:Trace ID Five ST:
arg-dn("O=idm"+token-map("Source to
Destination","eDirContainer","ADTarget",default-value="ou=NotAssigned"))
[06/16/11 05:48:01.220]:Trace ID Five ST: token-text("O=idm")
[06/16/11 05:48:01.220]:Trace ID Five ST: token-map("Source to
Destination","eDirContainer","ADTarget",default-value="ou=NotAssigned")
[06/16/11 05:48:01.221]:Trace ID Five ST: token-map("Source
to
Destination","eDirContainer","ADTarget",default-value="ou=NotAssigned")
[06/16/11 05:48:01.221]:Trace ID Five ST: Arg Value: "".
[06/16/11 05:48:01.221]:Trace ID Five ST: Token Value:
"ou=NotAssigned".
[06/16/11 05:48:01.221]:Trace ID Five ST: Arg Value:
"O=idmou=NotAssigned".
[06/16/11 05:48:01.221]:Trace ID Five ST:Policy returned:


--- Map ---
<?xml version="1.0" encoding="UTF-8"?><mapping-table>
<col-def name="eDirContainer" type="nocase"/>
<row>
<col>O=idm</col>
<col>ou=eDirUsers1,dc=j4mslab,dc=local</col>
</row>
<col-def name="ADTarget" type="nocase"/>
<row>
<col>ou=Students,o=idm</col>
<col>ou=Students,ou=eDirUser1,dc=j4mslab,dc=loca l</col>
</row>
</mapping-table>


--- Rule ---
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd"
"/root/designer/plugins/com.novell.idm.policybuilder_4.0.0.201104051747/DTD/dirxmlscript3.6.1.dtd"><policy>
<rule>
<description>SetDestination</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-text xml:space="preserve">O=idm</token-text>
<token-map default-value="ou=NotAssigned" dest="ADTarget"
src="eDirContainer" table="Source to Destination"/>
</arg-dn>
</do-set-op-dest-dn>
</actions>
</rule>
</policy>


--
taberkeith
------------------------------------------------------------------------
taberkeith's Profile: http://forums.novell.com/member.php?userid=12389
View this thread: http://forums.novell.com/showthread.php?t=440527