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

Loosing entries





Hi everyone!

Here my problem:

I do a ldap_search (LDAP_SCOPE_SUBTREE and "sn=T*") with the search base
set to the one of my slapd server ("c=de", slapd.conf file see below) and
get the correct entries, for one of these the function ldap_get_dn returns
"cn=Peter Test, o=Test Corp, c=de". Now I do a ldap_search
(LDAP_SCOPE_ONELEVEL and "0bjectclass=*") with the same search base and get
the entries of this level, the function ldap_get_dn returns "o=Test Corp,
c=de" for one of these entries. So far, so good!

Now I do a ldap_search (LDAP_SCOPE_ONELEVEL and "0bjectclass=*") with the
search base set to "o=Test Corp, c=de", the function returns no error, but
the function ldap_count_entries with the returned ldap-result returns '0',
no entries are found! The same occurs when I do a ldap_search
(LDAP_SCOPE_BASE and "0bjectclass=*") with the search base "cn=Peter Test,
o=Test Corp, c=de" to open this entry, no entry is found!

Using 'ldbmcat' shows all the entries.

Is there a problem with the db2-indexes? What can I do better?
Thanks for helping me...

Here my slapd.conf-file:

###############################################################
#     Global options
###############################################################
include "slapd.at.conf"
include "slapd.oc.conf"
schemacheck off
#loglevel 255
#referral ldap://ldap.bigfoot.com
###############################################################
#     ldbm database definitions
###############################################################
database  ldbm
directory "DBFiles"
#index default
index cn
index sn,telephoneNumber pres,eq,approx
index default none
suffix "c=de"
access to attr=userpassword
 by self write
 by * compare

rootdn "cn=manager, c=de"
rootpw secret