On Tue, May 13, 2003 at 11:19:01PM -0700, Howard Chu wrote: > > -----Original Message----- > > From: owner-openldap-software@OpenLDAP.org > > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Steve Langasek > > 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. Ah, of course -- I managed to overlook this part of the migration code. So in this case, slapadd together with something like Dave's script would give me exactly what I need! > Something like slapmod could be a pain to implement. "slapdel" would be > simpler, and would get you through most of the problem situations. Yes, it would be a pain to implement -- hence my question here before starting down that path. :) I don't think slapdel would cut it, since I'm guessing even 2.0 would object if I deleted the directory suffix. :) Thanks, -- Steve Langasek postmodern programmer
Attachment:
pgpr8npu2O9oi.pgp
Description: PGP signature