On Tue, 2005-02-15 at 16:59 +1100, Dave Horsfall wrote:
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): Invalid log
file: log.0000000001: No such file or directory
This is suspicious. Have you put the log files elsewhere, and not chown'd
them to ldap:ldap?
----
evidently I have...
# ls -l log.0000000001
-rw------- 1 ldap ldap 422547 Feb 14 22:52 log.0000000001
[root@srv1 openldap-data]# ls -l ../openldap-logs/
total 8
-rw------- 1 ldap ldap 423029 Feb 14 23:10 log.0000000001
[root@srv1 openldap-data]#
so I will retrace my steps...
# mv DB_CONFIG ../
# rm -fr *
# rm -fr ../openldap-logs/*
# > /var/log/slapd.log
# /usr/local/sbin/slapadd -l /root/slapcat.ldif
# chown ldap:ldap *bdb
# chown ldap:ldap __db.00*
# ls -l
total 2660
-rw------- 1 ldap ldap 86016 Feb 14 23:24 cn.bdb
-rw------- 1 ldap ldap 16384 Feb 14 23:24 __db.001
-rw------- 1 ldap ldap 278528 Feb 14 23:24 __db.002
-rw------- 1 ldap ldap 98304 Feb 14 23:24 __db.003
-rw------- 1 ldap ldap 450560 Feb 14 23:24 __db.004
-rw------- 1 ldap ldap 24576 Feb 14 23:24 __db.005
-rw------- 1 ldap ldap 8192 Feb 14 23:24 displayName.bdb
-rw------- 1 ldap ldap 77824 Feb 14 23:24 dn2id.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 gidNumber.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 givenName.bdb
-rw------- 1 ldap ldap 229376 Feb 14 23:24 id2entry.bdb
-rw------- 1 root root 1515849 Feb 14 23:24 log.0000000001
-rw------- 1 ldap ldap 8192 Feb 14 23:24 mail.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 memberUid.bdb
-rw------- 1 ldap ldap 20480 Feb 14 23:24 objectClass.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24
sambaDomainName.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24
sambaPrimaryGroupSID.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 sambaSID.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 sn.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 uid.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 uidNumber.bdb
# mv ../DB_CONFIG .
# service ldap-new start
Starting slapd: [ OK ]
Am I really dense?