cancel
Showing results for 
Search instead for 
Did you mean: 

Moving user from OU to OU with modrdn fails

Former Member
0 Kudos

Hi All,

I'm trying to implement the followin scenario:

A user is created in the Actice Directory when the DN is as follows:

DN=CN=%MSKEYVALUE%,OU=%DEPARTMENT%,%$rep.LDAP_STARTING_POINT%

Now I want to implement a pass that moves the user if his department changed.

I tried doing so with the modrdn changetype, but it just wouldn't budge.

I created a job with the following passes:

From LDAP (to a table in the IDS):

objectGUID objectGUID

sAMAccountname sAMAccountname

To IDS

MSKEYVALUE %sAMAccountname%

AD_GUID %objectGUID%

To LDAP

DN <GUID=%AD_GUID%>

changetype modrdn

newdn CN=%MSKEYVALUE%

deleteoldrdn 1

newsuperior OU=%DEPARTMENT%,%$rep.LDAP_STARTING_POINT%

The first 2 passes work fine, when it comes to the thirs, I get the following error:

putNextEntry failed storing&lt;GUID=To v?M??Y??)??&gt+

Now if I specify the full DN of the user like so:

DN CN=%MSKEYVALUE%,OU=%DEPARTMENT%,%$rep.LDAP_STARTING_POINT%

putNextEntry failed storingCN=P0003312,OU=1000,OU=IDM,DC=QANESS,DC=COM

I tried encoding the GUID in the first pass to HEX and removing the prefix, but no difference. What is this putNextEntry function and why does it fail?

Thanks in advance,

Eric Labiner

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok, so paying even closer attention to spelling does help:

dn CN=User01

changetype modRDN

newRDN CN=User01

Eric