Once again, thanks very much! I have not been aware of being able to supply the index with the "add" modifyer.
Great help! Am Tue, 12 Apr 2022 12:29:49 -0700 schrieb Quanah Gibson-Mount <[email protected]>: > --On Tuesday, April 12, 2022 9:47 PM +0200 Ede Wolf > <[email protected]> wrote: > > > > > Hello again, > > > > > > I am wondering, wether it is possible, to replace/overwrite an item > > without changing its index number, or wether for this case I do > > have to manually edit the schema.ldif (and thereby ruin the CRC)? > > > > Assuming I have this example: > > Hello, > > You can delete an existing index item purely by its index number. > You can insert by providing an index number. > > > ldapmodify .. > dn: ... > changetype: modify > delete: olcObjectClasses > olcObjectClasses: {4} > - > add: olcObjectClasses > olcObjectClasses: {4}( 1.1.1 NAME 'myoc' DESC 'My objectclass' SUP > top ABSTRACT MAY ( myAttribute ) ) > > > Regards, > Quanah >
