Hi ldap people,
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.
Thanks for a short pointer; wogri
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.
On 26.02.2007, at 16:24, Hallvard B Furuseth wrote:
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.
didn't think about that. thanks, that's actually pretty easy :)
openldap-software@openldap.org