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

RE: "slapmod": off-line tool for editing database entries?



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Steve Langasek

> Hello,
>
> Has anyone given any thought to the development of a
> 'slapmod' tool that
> would allow an admin to not only add objects to a database
> when slapd is
> down, but also to edit objects?  In working with the maintainers of
> Debian's OpenLDAP packages to provide a smooth transition
> from OpenLDAP
> 2.0 to 2.1, it's come to my attention that there are times where it
> would be useful to be able to make such modifications when
> the directory
> server is off-line -- indeed, a directory server might be off-line
> *because* it needs to be changed to conform to newer schema
> restrictions.  While slapcat+slapadd would certainly do the
> trick, this
> seems a bit heavy for what's really needed.  Any takers, or other
> suggestions?

I've thought about this from time to time. Your example is a poor one though,
as the database needs to be rebuilt anyway when migrating from 2.0 to 2.1. As
such, you already need to do a full slapcat followed by slapadd. So you run
slapadd, it fails, you fix the LDIF, then you slapadd again.

Something like slapmod could be a pain to implement. "slapdel" would be
simpler, and would get you through most of the problem situations.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support