From: Chris R. <chr...@ma...> - 2002-10-02 06:14:45
|
On 1/10/02 11:22 pm, Ayman Alashquar <as...@at...> wrote: > Hi all, > > Does any one know how to change the RDN withing a DN , e.g., the DN= > ou=first,o=world need to be changed to ou=second,o=world knowing that the > original ou=first has children entries that should not be deleted. We are > using iPlanet LDAP server 4.x > > I have tried the following LDIF file using ldapmmodify but it didnot work: > > dn: ou=first,o=world > changetype: modrdn > newrdn: ou=second > deleteoldrdn: 0 > newsuperior: o=world The 'newsuperior' line looks unnecessary, since the new entry has the same parent as the old. It is possible that the server doesn't support renaming a non-leaf entry, ie an entry with children. What kind of error do you get back? Use Net::LDAP::Util to convert any error codes into strings. Cheers, Chris |