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

Re: Schema changes: Removal of attribute

Wolfgang Hennerbichler writes:
> I guess this has been asked before, but I couldn't find precious
> information on google (other than "don't do that").
> I am trying to tidy up my custom schema definition. If I remove an
> attribute (and restart ldap and so on), the attribute is still
> visible. Well, I guess it's still in the database. Is there a
> possibility other than slapcat | grep | slapadd to remove these
> attributes from the database? ldap 2.3.30-2.

Well, you could restore the attribute in the schema, search for
'(<attrname>=*)' as the rootdn, and issue a Modify operation for each
returned entry which deletes the attribute.  Then delete it from
the schema.