Hi,
on an empty and clean database (running for
the first time) I get the error:
Jul 19 17:14:54 centostest slapd[27698]:
@(#) $OpenLDAP: slapd 2.4.21 (Jul 19 2010 15:47:56) $
root@centostest.passepartout.local:/opt/openldap-2.4.21/servers/slapd
Jul 19 17:14:55 centostest slapd[27699]:
bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
Jul 19 17:14:55 centostest slapd[27699]:
bdb_db_open: database "cn=accesslog": unclean shutdown detected;
attempting recovery.
Jul 19 17:14:55 centostest slapd[27699]:
bdb_db_open: warning - no DB_CONFIG file found in directory
/opt/ldap/var/openldap-data: (14). Expect poor performance for suffix
"cn=accesslog".
Jul 19 17:14:55 centostest slapd[27699]:
slapd starting
Jul 19 17:14:55 centostest slapd[27699]:
bdb(dc=passcom,dc=it): PANIC: fatal region error detected; run recovery
slapd.conf looks like this:
include
/opt/ldap/etc/openldap/schema/core.schema
include
/opt/ldap/etc/openldap/schema/local.schema
include
/opt/ldap/etc/openldap/schema/cosine.schema
include
/opt/ldap/etc/openldap/schema/dnszone.schema
pidfile
/opt/ldap/var/run/slapd.pid
argsfile
/opt/ldap/var/run/slapd.args
modulepath
/opt/ldap/libexec/openldap
moduleload
accesslog.la
database
bdb
suffix
"dc=passcom,dc=it"
rootdn
"cn=Manager,dc=passcom,dc=it"
# Cleartext passwords, especially for the
rootdn, should
# be avoid. See slappasswd(8) and
slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw
***secret***
# The database directory MUST exist prior
to running slapd AND
# should only be accessible by the slapd
and slap tools.
# Mode 700 recommended.
directory
/opt/ldap/var/openldap-data
# Indices to maintain
index
objectClass eq
overlay accesslog
logdb "cn=accesslog"
database bdb
suffix "cn=accesslog"
index reqStart eq
Any help is appreciated.