mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
35655c056f
Old code applied sync flags to store(), however supported DBMs require such flags to be specified during open(). The new code now applies flags in ldbm_cache_open (which calls ldbm_open). ldbm_cache_close() now calls ldbm_sync(). This will force a updating of on-disk contents after each LDAP operation. The old code either failed to sync the on-disk contents until close or synced on every store. Per LDBM operation syncing *should* be safe enough... real data safety requires transactions. Removed nosync option from BDB2 as it is not compatible with txn support. Also added code to disable DBM level locking as slapd is only process acessing the databases (dbnolocking).
32 lines
847 B
Plaintext
32 lines
847 B
Plaintext
# $OpenLDAP$
|
|
#
|
|
# master slapd config -- for testing of replication
|
|
#
|
|
include ./data/slapd.at.conf
|
|
include ./data/slapd.oc.conf
|
|
schemacheck off
|
|
pidfile ./test-repl/slapd.pid
|
|
argsfile ./test-repl/slapd.args
|
|
|
|
referral "ldap://localhost:9009/"
|
|
|
|
#######################################################################
|
|
# ldbm database definitions
|
|
#######################################################################
|
|
|
|
backend bdb2
|
|
home ./test-repl
|
|
|
|
database bdb2
|
|
cachesize 0
|
|
suffix "o=University of Michigan, c=US"
|
|
directory ./test-repl
|
|
rootdn "cn=Replica, o=University of Michigan, c=US"
|
|
rootpw secret
|
|
updatedn "cn=Replica, o=University of Michigan, c=US"
|
|
updateref "ldap://localhost:9009/o=University%20of%20Michigan,c=US"
|
|
index cn,sn,uid pres,eq,approx
|
|
index default none
|
|
# index default pres,eq,approx
|
|
lastmod on
|