tag 305535 + fixed
thanks

On Wed, 20 Apr 2005, Alexander Gerasiov wrote:

> Limitations
>        Your  slapd(8)  should  not  be running (at least, not in
>        read-write mode) when you do this to ensure consistency of the
>        database.
> 
> So you should stop slapd before and start it after.

The man page is not entirely accurate. As the openldap mailing list
will tell you -- slapcat is only dangerous with the ldbm backend, if
you are using bdb it is perfectly safe because it does the proper
database table locking (which it cannot do with ldbm backends).

I have added a restart option to the ldap handler so you can decide if
you want to have slapd stopped before a backup is done, and then
started when it is finished. It is by default set to no.

> But I think that the following scenario should be better:
> You should use not slapcat, but
> ldapsearch -x -D "basedn" -y /etc/ldap.secret
> or just
> ldapsearch -x
> (in dependence of configuration user choosed)

I added a method configuration variable that allows you to decide what
backup method to use, the default is set to ldapsearch. As you may
know, ldap search is significantly slower than slapcat, and if you
have a large database you will not want to use it. If you have a large
database, then you will probably be using bdb and the slapcat method,
but these are now configurable.

These changes are being tested, and a fixed version will be uploaded
shortly.

micah


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to