[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
SLAPD crash (ITS#2330)
Full_Name: Tomasz Nowak
Version: 2.1.13
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.98.240.230)
Hi,
I found a strange behavior when trying to add this entry to my directory:
dn: o=unix
objectClass: top
objectClass: organization
o: notunix
During loading this entry to my database slapd deamon crash(segmentation fault)
My client log:
$ ldapadd -D "cn=root,dc=umich,dc=edu" -w secret -H ldap://debian:1389/ -f
crash.ldif
ldap_bind: Invalid credentials (49)
bash-2.05a$ ldapadd -D "cn=root,o=unix" -w secret -H ldap://debian:1389/ -f
crash.ldif
adding new entry "o=unix"
ldapadd: update failed: o=unix
ldap_add: Can't contact LDAP server (81)
My server log:
$ slapd -d -1
...
conn=1 op=1 ADD dn="o=unix"
dn2entry_r: dn: "o=unix"
=> dn2id( "o=unix" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
==> ldbm_back_add: o=unix
./slapd-start: line 1: 1675 Segmentation fault slapd -h ldap://:1389/ $@
This situation occurs, when attribute value used in RDN is not the same like a
value of the same attribute type under entry definiton:
dn: o=unix
...
o: different
---
I am using Debian Linux 3.0 (kernel 2.4.20), OpenLDAP (v2.1.13), OpenSSL
(v0.9.7a) and Sleepy Cat dbm backed (v4.1.25)
---
My slapd.conf:
include /home/tomnowak/local/etc/openldap/schema/core.schema
include /home/tomnowak/local/etc/openldap/schema/corba.schema
include /home/tomnowak/local/etc/openldap/schema/cosine.schema
include /home/tomnowak/local/etc/openldap/schema/inetorgperson.schema
include /home/tomnowak/local/etc/openldap/schema/java.schema
include /home/tomnowak/local/etc/openldap/schema/misc.schema
include /home/tomnowak/local/etc/openldap/schema/nis.schema
include /home/tomnowak/local/etc/openldap/schema/openldap.schema
### Process informations
pidfile /home/tomnowak/local/var/openldap/slapd.pid
argsfile /home/tomnowak/local/var/openldap/slapd.args
database ldbm
suffix "o=unix"
rootdn "cn=root,o=unix"
rootpw "secret"
directory /home/tomnowak/local/var/openldap/umich.edu/data
index objectClass eq
index uid eq
---
My configure:
CPPFLAGS=-I${HOME}/local/include ./configure --prefix=${HOME}/local \
--libexecdir=${HOME}/local/sbin \
--localstatedir=${HOME}/local/var/openldap \
\
--x-includes=${HOME}/local/include \
--x-libraries=${HOME}/local/lib \
\
--enable-debug \
--enable-syslog \
--disable-dynamic \
--enable-proctitle \
--disable-ipv6 \
--enable-local \
--disable-x-compile \
--without-cyrus-sasl \
--without-fetch \
--without-kerberos \
--with-readline \
--with-threads \
--with-tls \
--with-yielding-select \
\
--enable-slapd \
--disable-aci \
--enable-cleartext \
--enable-crypt \
--disable-kpasswd \
--disable-lmpasswd \
--disable-spasswd \
--disable-modules \
--enable-phonetic \
--enable-rewrite \
--enable-rlookups \
--disable-slp \
--enable-wrappers \
\
--enable-bdb \
--enable-dnssrv \
--enable-ldap \
--enable-ldbm \
--with-ldbm-api=berkeley \
--with-ldbm-type=btree \
--enable-meta \
--enable-monitor \
--enable-null \
--enable-passwd \
--enable-perl \
--enable-shell \
--disable-sql \
\
--enable-slurpd