Alberto GD writes:
When I try to modify dn:
That looks like what you should try, yes...
dn: uid=old_user_uid,dc=dominio changetype: modify replace: dn dn: uid=new_user_uid,dc=dominio
"dn" is not an attribute name, it's just written that way in LDIF format. Use the 'modrdn' changetype to change the DN of an entry:
dn: uid=old_user_uid,dc=dominio changetype: modrdn newrdn: uid=new_user_uid deleteoldrdn: 1