Ok , the problem was what i create the index after the add the user , and i dont run the slapdindex for regenerate the index table.
Run slapdindex ...... any work fine and fast.

Thanks and sorry

Gabriel


Gabriel Musco wrote:

Hello , my name is Gabriel and have this following problem:

I create a ldap database.
The entry take this format:
uid=pppp,dc=...,dc=...,dc=...
uid: pppp
where pppp is a user in my mail system.

If i enable index for uid (index uid eq) , when i do a qmail-ldaplookup -u pppp , the program no found entry and the log show this:

bdb_equality_candidates (uid)
key_read
bdb_idl_fetch_key: [751f201a]
bdb_index_read: failed (-30990)

If disable the index uid eq , the program found the entry , but spend more time ... because find one a one the entrys in the database.

Now .... if i change the format entry and are in this format :
cn=pppp,dc=...,dc=...,dc=...
uid: pppp
cn: pppp

the index work fine and very fast.

I dont understand when are the problem , somebody take this problem in your qmail-ldap system ???

Thanks

Gabriel

Reply via email to