Hi,

Hopefully somebody can help with this issue. I am using a placement
table to look up users Location and then place the user in the relative
container in Active Directory.

The mapping table has two columns. The first contains the User
Location and the second contains the DN of the relevant container to
place the users.

The issue is that when users are created they are placed in a level
higher to what is actually specified in the DN specified in the Table.

i.e. Users with the location of New York should be placed in

OU=Users,OU=New York,OU=IDMDEV,DC=idmdev,DC=local

but are instead placed in

OU=New York,OU=IDMDEV,DC=idmdev,DC=local

The mapping table and placement rule are below:

Mapping table

<?xml version="1.0" encoding="UTF-8"?><mapping-table>
<col-def name="location" type="nocase"/>
<row>
<col>London</col>
<col>OU=Users,OU=London,OU=IDMDEV,DC=idmdev,DC=loc al</col>
</row>
<col-def name="container" type="nocase"/>
<row>
<col>New York</col>
<col>OU=Users,OU=New York,OU=IDMDEV,DC=idmdev,DC=local</col>
</row>
<row>
<col>Paris</col>
<col>OU=Users,OU=Paris,OU=IDMDEV,DC=idmdev,DC=loca l</col>
</row>
<row>
<col>Wellington</col>
<col>OU=Users,OU=Wellington,OU=IDMDEV,DC=idmdev,DC =local</col>
</row>
</mapping-table>


Placement rule

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:\Program
Files\Novell\Designer\plugins\com.novell.idm.polic ybuilder_3.0.1.200907020449\DTD\dirxmlscript3.6.dt d"><policy>
<rule>
<description>User Placement Policy by Mapping Table</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-src-dn op="in-subtree">IDMDEV\Users</if-src-dn>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-map dest="container" src="location"
table="\[root]\IDMDEV\IDM\Library\Placement Mapping Table">
<token-op-attr name="L"/>
</token-map>
</arg-dn>
</do-set-op-dest-dn>
</actions>
</rule>


--
stuart_sam
------------------------------------------------------------------------
stuart_sam's Profile: http://forums.novell.com/member.php?userid=43841
View this thread: http://forums.novell.com/showthread.php?t=389837