[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
Hi,
I am using open ldap 2.4.8 with berkeley db 4.6.21
The installation of the open ldap went through successfully. But I have the following problem.
1. When tried accessing the dc=example,dc=com through ldapsearch it fails with no such object.
ldapsearch -h my-openldap-host -p 9011 -D"cn=Manager,dc=example,dc=com" -w secret -b 'dc=example,dc=com' -s sub 'objectclass=*'
ldap_search: No such object
Following the error msgs from slapd
==========================
=> bdb_search
bdb_dn2entry("dc=example,dc=com")
=> bdb_dn2id("dc=example,dc=com")
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
send_ldap_result: conn=2 op=1 p=3
send_ldap_response: msgid=2 tag=101 err=32
ber_flush2: 14 bytes to sd 11
0000: 30 0c 02 01 02 65 07 0a 01 20 04 00 04 00 0....e... ....
ldap_write: want=14, written=14
0000: 30 0c 02 01 02 65 07 0a 01 20 04 00 04 00 0....e... ....
connection_get(11): got connid=2
connection_read(11): checking for input on id=2
ber_get_next
ldap_read: want=8, got=7
0000: 30 05 02 01 03 42 00 0....B.
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
conn=2 op=2 do_unbind
connection_closing: readying conn=2 sd=11 for close
connection_resched: attempting closing conn=2 sd=11
contents of slapd.conf are
===================
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory <myhost-dir>/openldap/install/openldap-2.4.8/var/openldap-data
# Indices to maintain
index objectClass eq
However, when I try ldapbind to the open ldap it works fine..
ldapbind -h my-openldap-host -p 9011 -D"cn=Manager,dc=example,dc=com" -w secret
And also , base search goes through fine.
ldapsearch -h my-openldap-host -p 9011 -D"cn=Manager,dc=example,dc=com" -w secret -b '' -s base 'objectclass=*'
How do I get around this error !!!, is there any configuration mismatch ??? The slapd is running as a normal unix user and not as a "ldap "user.
Command used to run the slapd is:
./slapd -h ldap://my-openldap-host:9011 -f ../etc/openldap/slapd.conf -d3
Please help
--
Thanks,
Srinidhi