我正在尝试在我的计算机上配置 slapd,但一直收到此错误。我有时可以使用 db7.7_recover 进行恢复,但并非总是如此。如果 slapd 守护进程因任何原因被终止,我就会看到此问题。
DB 难道不应该能够处理这些故障吗?有没有可以应用于 BDB 的补丁?
root@anurag-desktop:/etc/ldap# slapd -d 256 -f /etc/ldap/slapd.sssc.conf &
[1] 4820
root@anurag-desktop:/etc/ldap# @(#) $OpenLDAP: slapd 2.4.21 (Dec 19 2011 15:40:04) $
buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
/etc/ldap/slapd.sssc.conf: line 22: rootdn is always granted unlimited privileges.
/etc/ldap/slapd.sssc.conf: line 26: rootdn is always granted unlimited privileges.
bdb_db_open: database "dc=sssc,dc=org": unclean shutdown detected; attempting recovery.
bdb(dc=sssc,dc=org): /usr/local/var/slapd-logs: Permission denied
bdb(dc=sssc,dc=org): PANIC: Permission denied
bdb(dc=sssc,dc=org): unable to join the environment
bdb_db_open: database "dc=sssc,dc=org" cannot be recovered, err -30974. Restore from backup!
bdb(dc=sssc,dc=org): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_close: database "dc=sssc,dc=org": txn_checkpoint failed: Invalid argument (22).
backend_startup_one (type=bdb, suffix="dc=sssc,dc=org"): bi_db_open failed! (-30974)
bdb_db_close: database "dc=sssc,dc=org": alock_close failed
slapd stopped.
我使用 db4.7_logfile 转储了日志文件,但我不知道哪个调用导致权限失败。
有什么指点吗?