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

Re: commit: ldap/servers/slapd bconfig.c

hyc@OpenLDAP.org wrote:
Update of /repo/OpenLDAP/pkg/ldap/servers/slapd

Modified Files:
	bconfig.c  1.255 -> 1.256

Log Message:
ITS#4752 add undo for schema entries.

back-config was already cleaning up failed Adds for databases and overlays. This commit adds another special case for schema entries. A general solution doesn't really exist, since some attributes just don't support a Delete operation. But this covers the key object types.

E.g. deleting a moduleLoad directive will be a major problem until we add a lot of unregister / destroy functions which currently don't exist. (An overlay like syncprov dynamically registers a schema, a control and the overlay itself. Each of those needs a tear-down function.

The Modify handler does a more thorough job of undoing things.

  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  Chief Architect, OpenLDAP     http://www.openldap.org/project/