Context
Let's say I have a tree structure with a base node called dc=ACME with an arbitrary and ever-growing number of childs called dc=Foo-XX where XX is a number. Each Foo-XX has two "Organizational Units" inside (ou=groups and ou=users)
So the DN of a given user could be something "Id=4, ou=users, dc=Foo-17, dc=ACME"
Requisite
What I would need is to rename a given "Foo-XX" node, something on the lines of
Foo-XX -> 
Foo-XX-removed
keeping also their inner subtrees "functional"; but according to the documentation, ldap_rename isn't able to move not-leaf nodes.
I don't require the full code to do all this, my question is: Does anyone know I library or some directions on how to approach this problem?
Note: If you've used Apache Directory Studio, it would be something like the "Rename Entry..." functionality when you right click a node
