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.
-------------------------------------------------------------------- Il contenuto di questo messaggio di posta elettronica e ogni eventuale documento a quest'ultimo allegato puo contenere informazioni la cui riservatezza e' tutelata ed e' rivolto unicamente agli effettivi destinatari i quali prendono atto del carattere non strettamente personale dei messaggi di risposta, che potranno essere noti all'organizzazione aziendale. Sono vietati la riproduzione e l'uso di questo messaggio in mancanza di autorizzazione del destinatario. Se avete ricevuto questo messaggio per errore, vogliate cortesemente chiamarci immediatamente per telefono o fax e distruggere quanto ricevuto (compresi i file allegati) senza farne copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti.
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
openldap-technical@openldap.org