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

Re: Remove a schema using OpenLDAP dynamic configuration

--On Friday, April 27, 2012 12:45 PM +0200 Jean-Philippe Braun <eon@patapon.info> wrote:

Hi all,

I'm trying to add/remove schemas dynamically using the cn=config
database (using slapd 2.4.23-7.2 on debian stable).

a) You really should run a current version of OpenLDAP for numerous reasons.

So is it possible to remove a schema like this ? I should miss

b) there is no delete support in OL 2.4 for dynamic config. You can achieve this by:

stopping slapd
using slapcat to export the dynamic config to LDIF
Modifying the LDIF export to remove the schema in question
Remove (or rename) your old dynamic config directory
slapadd the updated LDIF
start slapd

There cannot be any entries in your databases using that schema.



Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
Zimbra ::  the leader in open source messaging and collaboration