From: Ayman A. <as...@at...> - 2002-10-02 09:53:26
|
Thanks alot for your reply. The error says that I cannot change the RDN for a non-leaf object. Any ideas? Regards, Ayman -----Original Message----- From: Chris Ridd [mailto:chr...@ma...] Sent: 26 NIE, 1423 09:15 O To: Ayman Alashquar; per...@li... Subject: Re: Modifying the RDN 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 |