From: Voglmaier, R. E. <rv...@Gl...> - 2002-10-02 07:55:27
|
Ayman, this cannot work. I think you get an error message saying something = like:=20 subtree rename not supported. the problem is that you try to move an entire subtree. since=20 dn: ou=3Dfirst,o=3Dworld has children, that have the names dn: cn=3Dchild1, ou=3Dfirst,o=3Dworld =20 dn: cn=3Dchild1, ou=3Dfirst,o=3Dworld =20 ecc. they should change name also.in cn=3Dchild1, ou=3Dsecond, = o=3Dworld new superior does not mean that the children of this entry should = change, but that the entry change its parent. in your case it would mean that you give ou=3Dfirst, o=3Dworld a new = daddy, but this is not your case. now back to your example, you should=20 * add the new entry dn: ou=3Dsecond, o=3Dworld * change rdn of all children here you have to be very exact !!! dn: cn=3Dchild1, ou=3Dfirst, o=3Dworld changetype: modrdn newrdn: child1 deleterdn: 0 newsuperior: ou=3Dsecond, o=3Dworld cheers reinhard btw: exactly this case I gave as example in my upcoming book about LDAP.=20 ( the title is not yet quite clear, but if you are interested in, drop = me an e-mail ) > -----Original Message----- > From: Ayman Alashquar [SMTP:as...@at...] > Sent: mercoled=EC 2 ottobre 2002 00:23 > To: per...@li... > Subject: Modifying the RDN >=20 > Hi all, >=20 > Does any one know how to change the RDN withing a DN , e.g., the = DN=3D > ou=3Dfirst,o=3Dworld need to be changed to ou=3Dsecond,o=3Dworld = knowing that the > original ou=3Dfirst has children entries that should not be deleted. = We are > using iPlanet LDAP server 4.x >=20 > I have tried the following LDIF file using ldapmmodify but it didnot > work: >=20 > dn: ou=3Dfirst,o=3Dworld > changetype: modrdn > newrdn: ou=3Dsecond > deleteoldrdn: 0 > newsuperior: o=3Dworld >=20 >=20 > Best Regards, >=20 > Ayman Alashquar >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: DEDICATED SERVERS only $89! > Linux or FreeBSD, FREE setup, FAST network. Get your own server=20 > today at http://www.ServePath.com/indexfm.htm |