[Date Prev][Date Next] [Chronological] [Thread] [Top]

moving an entire branch from one parent to another - possible ?



Hi,

what is the easiest way to move an entire branch of nodes from one "parent
node" place to another ?

I have a tree like this:

      (a)
       |
       |
    +-----+
    |     |
   (b)    (c)
    |
  +---+
  |   |
 (d) (e)


and want to move the entire branch starting with (b) to (c) so that the tree
looks like this:

      (a)
       |
       |
       ---+
          |
         (c)
          |
         (b)
        +---+
        |   |
       (d) (e)


Is there a way of doing this without deleting (d) and (e), doing a moddn on
(b) and then reinserting (d) and (e) ? Does OpenLDAP have a function for
moving an entire branch (and does it automatically update the dn's of (d)
and (e) when I call it ?)

I did play with moddn for quite a while but it seems to fail everytime I
want to move a node that is not a leaf ...

Thanks,

Jochen