[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#4305) BDB-recovery generates bdb cache files with wrong ownership
Full_Name: Christiaan den Besten
Version: 2.3.14
OS: FC3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (85.145.28.185)
A slapd bdb backend that doesn't terminate cleanly will have to be recoverd
before being usable.
v2.3.x does this automaticly, but seems to be recovering with root rights
instead of the -u [user] rights.
----
[root@control ldap]# ps uafx | grep slapd
root 15031 0.0 0.0 3908 564 pts/0 S+ 19:28 0:00 | \_ grep
slapd
ldap 12564 0.0 0.2 157288 4444 ? Ssl 19:24 0:00 /usr/sbin/slapd
-h ldap:/// -u ldap
[root@control ldap]# kill -9 12564
[root@control ldap]# service ldap start
Checking configuration files for slapd: [ OK ]
Starting slapd: [ OK ]
[root@control ldap]# ls -al
total 3564
drwx------ 2 ldap ldap 4096 Jan 5 19:28 .
drwxr-xr-x 17 root root 4096 Jan 4 00:10 ..
-rw-r--r-- 1 ldap ldap 4096 Jan 5 19:28 alock
-rw------- 1 ldap ldap 323584 Jan 5 19:23 cn.bdb
-rw------- 1 root root 16384 Jan 5 19:28 __db.001
-rw------- 1 root root 131080192 Jan 5 19:28 __db.002
-rw------- 1 root root 3145728 Jan 5 19:28 __db.003
-rw------- 1 root root 450560 Jan 5 19:28 __db.004
-rw------- 1 root root 16384 Jan 5 19:28 __db.005
-rw-r--r-- 1 ldap ldap 426 Jan 4 00:14 DB_CONFIG
-rw------- 1 ldap ldap 311296 Jan 5 19:28 dn2id.bdb
-rw------- 1 ldap ldap 8192 Jan 5 19:28 entryCSN.bdb
-rw------- 1 ldap ldap 8192 Jan 5 19:23 entryUUID.bdb
-rw------- 1 ldap ldap 40960 Jan 5 19:23 gidNumber.bdb
-rw------- 1 ldap ldap 1163264 Jan 5 19:28 id2entry.bdb
-rw------- 1 ldap ldap 209112 Jan 5 19:28 log.0000000001
-rw------- 1 ldap ldap 745472 Jan 5 19:23 mail.bdb
-rw------- 1 ldap ldap 139264 Jan 5 19:28 objectClass.bdb
-rw------- 1 ldap ldap 8192 Jan 4 00:15 ou.bdb
-rw------- 1 ldap ldap 208896 Jan 5 19:23 sn.bdb
-rw------- 1 ldap ldap 327680 Jan 5 19:23 uid.bdb
-rw------- 1 ldap ldap 40960 Jan 5 19:28 uidNumber.bdb
[root@control ldap]#
----
System: Fedora Core 3
OpenLDAP build by
- a) Taking Fedora Experimental openldap.2.3.11-3.src.rpm
- b) replaced openldap-2.3.11.tar.gz with openldap-2.3.14.tar.gz
- c) replaced bdb with bdb-4.52
( I hope above it not 'too bulky' if so, appologies )