[Date Prev][Date Next] [Chronological] [Thread] [Top]

database doesn't work after restart



Hello,
I'm using openladp-1.2.9 with RH6.2beta with some updates.

I did append it 9555 users (dn:dc=people,dc=ubiobio,dc=cl) and
I was working with that without problems with ldapsearch,
pam_ldap, nss_ldap, etc.  All was working ok (well, almost because
passwd<->pam_ldap<->openldap never worked fine).

The facts: After shutdown and restart the server:
[gpoo@alumnos api]$ ldapsearch "(objectclass=*)"
ldap_search: No such object

Why?  The debug look as:

do_bind: version 2 dn () method 128
send_ldap_result 0::
do_search
using base "DC=UBIOBIO,DC=CL"
subtree_candidates: base: "DC=UBIOBIO,DC=CL" lookupbase
dn2entry_r: dn: "DC=UBIOBIO,DC=CL"
=> dn2id( "DC=UBIOBIO,DC=CL" )
=> ldbm_cache_open( "/home/ldap/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id NOID
send_ldap_result 32::
ber_get_next on fd 7 failed errno 0 (Success)
*** got 0 of 0 so far
do_unbind


I didn't make change anything.  Just restarted the server.

I'm using the following indexes:
index uid,cn
index uidnumber,gidnumber pres,eq
index default none

and my files: 
-rw-r--r--    1 root     root            5 Apr  6 22:22 NEXTID
-rw-------    1 root     root      4528128 Apr  6 20:58 cn.dbb
-rw-------    1 root     root      1161216 Apr  6 20:58 dn.dbb
-rw-------    1 root     root        51200 Apr  6 20:58 dn2id.dbb
-rw-------    1 root     root        43008 Apr  6 14:08 gidnumber.dbb
-rw-------    1 root     root         6144 Apr  6 20:58 id2children.dbb
-rw-------    1 root     root       120832 Apr  6 20:58 id2entry.dbb
-rw-------    1 root     root       106496 Apr  6 20:58 objectclass.dbb
-rw-------    1 root     root      1917952 Apr  6 16:39 uid.dbb
-rw-------    1 root     root       450560 Apr  6 16:39 uidnumber.dbb

It's really strange the data, because after the process was finished
(add users), some files was 7Mb aprox.

What was happen?


--
German Poo Caaman~o
mailto:gpoo@ubiobio.cl
http://www.ubiobio.cl/~gpoo/chilelindo.html