1. Zhang Huangbin
  2. iredmail

Commits

Zhang Huangbin  committed b75d888

Add checkpoint setting in OpenLDAP for data recovery, used to define
the time between BDB checkpoint operations. Default is whenever 128kb
data bytes written or 5 minutes has elapsed whichever occurs first.

  • Participants
  • Parent commits 8b9bd3f
  • Branches default

Comments (0)

Files changed (3)

File iRedMail/ChangeLog

View file
 iRedMail-0.8.2:
+    * Add checkpoint setting in OpenLDAP for data recovery, used to define
+      the time between BDB checkpoint operations. Default is whenever 128kb
+      data bytes written or 5 minutes has elapsed whichever occurs first.
     * Rotate Dovecot log files on OpenBSD and FreeBSD.
     * Allow to use attribute domainGlobalAdmin for mail user.
     * Fixed:

File iRedMail/conf/openldap

View file
 #     OS will be more comfortable.
 #   * Performance of bdb backend is good enough. but Debian/Ubuntu can
 #     also use 'hdb' for OpenLDAP-2.4.x.
-export OPENLDAP_DEFAULT_DBTYPE='bdb'    # bdb, hdb(used for OpenLDAP-2.4.x)
+export OPENLDAP_DEFAULT_DBTYPE='bdb'
 
 # Default LDAP data directory.
 export OPENLDAP_DATA_DIR='/var/lib/ldap'    # Do *NOT* end with '/'.

File iRedMail/functions/openldap.sh

View file
 sizelimit   1000
 cachesize   1000
 
+# The checkpoint directive defines the time between checkpoint operations
+# in BDB. The database can only be recovered from the last checkpoint.
+# OpenLDAP default is NO CHECKPOINTING.
 #
+# Check point whenever 128kb data bytes written or 5 minutes has elapsed
+# whichever occurs first
+checkpoint  128 5
+
 # Set directory permission.
-#
 mode        0700
 
 #