[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapcat -c problem
Hi,
slapcat -c doesn't work as I expect in one case. It should ignore errors.
I have following slapd.conf with 2 suffixies, only the second one (dc=my-domain,dc=com) is filled with data:
cat slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
allow bind_v2
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
database bdb
suffix dc=example,dc=com
rootdn "cn=Manager,dc=example,dc=com"
rootpw x
directory /var/lib/ldap/
database bdb
suffix dc=my-domain,dc=com
rootdn "cn=Manager,dc=my-domain,dc=com"
rootpw x
directory /tmp/tmp.lfFaOlWyes/ldap-test-ldap2
[test]slapcat
537223f1 bdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap/: (2).
Expect poor performance for suffix "dc=example,dc=com".
537223f1 bdb_db_open: database "dc=example,dc=com": db_open(/var/lib/ldap//id2entry.bdb) failed: No such file or directory (2).
537223f1 backend_startup_one (type=bdb, suffix="dc=example,dc=com"): bi_db_open failed! (2)
slap_startup failed
'slapcat -c' gives me the same output. I expect that it will ignore errors with the first database and dumps the database for second suffix.
Should slapcat -c skip error in this case?
Tested with openldap-2.4.39
--
David Spurek