[Date Prev][Date Next]
Re: Write changed immediately to disk
On Monday 18 February 2008 09:37:11 email@example.com wrote:
> Howard Chu schrieb:
> > firstname.lastname@example.org wrote:
> >> Hello List,
> >> what settings do i need to write my ldap changes (almost) immedialtely
> >> to disk?
> >> I do not need much of performance but would rather have a higher
> >> security.
> > That is the default behavior for slapd, no other settings are needed.
> In my case i add a samba user to my ldap DB, then after 15 seconds i
> reset that box by pressing the reset button.
> After the box has rebootet the added user is not there anymore.
If you are using ldbm, there are no guarantees of anything. If you are using
bdb on OpenLDAP 2.2 and you don't run database recovery after a reboot (or
unclean shutdown of slapd) and before starting slapd, you could lose some
data (as slapd in 2.2 doesn't do automatic database recovery, the operations
in the transaction logs could be lost). The fix for this is to ensure the
init script runs database recovery before starting slapd, or upgrading to
But, this is why it would have been useful if you provided at least *some*
information on what version your are using, and what backend.