Dear Openldap techies,
I have been trying for hours to bring this server to work without any
success so far. When I try to delete an object from the ldap server with
ldapdelete, I get the following error message in the log file:
Jul 18 00:43:00 zorg slapd[1904]: => bdb_dn2id_delete 0x3: "cn=laurent
bourqui,ou=addresses,dc=apicus,dc=ch"
Jul 18 00:43:00 zorg slapd[1904]: <= bdb_dn2id_delete 0x3: -30994
Jul 18 00:43:00 zorg slapd[1904]: <=- bdb_delete: dn2id failed:
DB_LOCK_NOTGRANTED: Lock not granted (-30994)
Jul 18 00:43:00 zorg slapd[1904]: ==> bdb_delete: retrying...
The server is configured the following way:
sladpd.conf:
------------------------
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
modulepath /usr/local/libexec/openldap
moduleload back_bdb
loglevel any
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=apicus,dc=ch"
rootdn "cn=admin,dc=apicus,dc=ch"
rootpw xxxxxxxx
directory /var/db/openldap-data
index objectClass eq
----------------------------------------
I have added some entries using the following ldif file:
----------------------------------------
dn: dc=apicus, dc=ch
objectclass: dcObject
objectClass: organization
o: apicus
dc: apicus
dn: ou=addresses, dc=apicus, dc=ch
objectclass: organizationalUnit
ou: addresses
description: Apicus Addressbook
dn: cn=Laurent Bourqui, ou=addresses, dc=apicus, dc=ch
objectClass: top
objectClass: inetOrgPerson
uid: 00001
cn: Laurent Bourqui
gn: Laurent
sn: Bourqui
mobile: +xxxxxxxxx
homePhone: +xxxxxxxxxxx
street: xxxxxxxxxxxx
postalCode: xxxxx
l: xxxxxxxxxx
st: xxx
----------------------------------------
The ldif file has been imported with the following command:
ldapadd -x -W -D 'cn=admin,dc=apicus,dc=ch' -f apicus-addresses.ldiff
I'm now trying to delete the entry:
dn: cn=Laurent Bourqui, ou=addresses, dc=apicus, dc=ch
using the following command:
ldapdelete -x -W -D 'cn=admin,dc=apicus,dc=ch' "cn=Laurent Bourqui,
ou=addresses, dc=apicus, dc=ch"
This command hangs and continuisly bring the error message in the logs.
I have search the FAQ, google and event the berkley DB infos for
informations but I was not able to find any hint about the reason of this
problem. Did anybody already encoutered this error ?
Versions:
openldap 2.4.10
FreeBSD 7.0
Any feedback will be welcom.
Many thanks in advance for your help.
Best Regards
--
Laurent Bourqui