[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: accesslog overlay doesnt work



Le 19/07/2010 17:19, Gianluigi Nigro a écrit :
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:

...

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.

My guess would be that you need to configure a different "directory" for your second database.

Jonathan

--
--------------------------------------------------------------
Jonathan Clarke - jonathan@phillipoux.net
--------------------------------------------------------------
Ldap Synchronization Connector (LSC) - http://lsc-project.org
--------------------------------------------------------------