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

openldap-2.1.14 + ldapdb.c: slapd core dumped



Hello!

I am  install OpenLDAP openldap-2.1.14 + ldapdb.c + cyrus-sasl-2.1.12 +
db-4.1.25 on FreeBSD 4.7.

slapd.conf:
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
database        bdb
suffix          "dc=komi,dc=mts,dc=ru"
rootdn          "cn=Manager,dc=komi,dc=mts,dc=ru"
rootpw          secret
directory       /var/db/openldap-data
index   objectClass     eq
loglevel -1
sasl-regexp uidNumber=(.*)\\+gidNumber=(.*),cn=peercred,cn=external,cn=auth
ldap:///dc=komi,dc=mts,dc=ru??sub?(&(uidnumber=$1)(gidnumber=$2))

/usr/local/lib/sasl2/sample.conf:
ldapdb_uri: ldapi://
ldapdb_mech: EXTERNAL

# ./server -p 7777
trying 2, 1, 6
accepted new connection
send: {50}
NTLM LOGIN ANONYMOUS PLAIN OTP DIGEST-MD5 CRAM-MD5
recv: {10}
DIGEST-MD5
recv: {1}
N
send: {123}
nonce="+l3e7R57mMzsMpBfx4V1DKlIpcFKlqzbF976Bkx3rf8=",realm="deiter.komi.mts.
ru",qop="auth",charset=utf-8,algorithm=md5-sess
recv: {239}
username="deiter",realm="deiter.komi.mts.ru",nonce="+l3e7R57mMzsMpBfx4V1DKlI
pcFKlqzbF976Bkx3rf8=",cnonce="+l3e7R57mMzsMpBfx4V1DKlIpcFKlqzbF976Bkx3rf8=",
nc=00000001,qop=auth,digest-uri="rcmd/deiter",response=c4a1c00f8962055d17c25
04efbd28ea4
Broken pipe

# ./client -p 7777 deiter
receiving capability list... recv: {50}
NTLM LOGIN ANONYMOUS PLAIN OTP DIGEST-MD5 CRAM-MD5
NTLM LOGIN ANONYMOUS PLAIN OTP DIGEST-MD5 CRAM-MD5
send: {10}
DIGEST-MD5
send: {1}
N
recv: {123}
nonce="+l3e7R57mMzsMpBfx4V1DKlIpcFKlqzbF976Bkx3rf8=",realm="deiter.komi.mts.
ru",qop="auth",charset=utf-8,algorithm=md5-sess
please enter an authentication id: deiter
please enter an authorization id: deiter
Password:
send: {239}
username="deiter",realm="deiter.komi.mts.ru",nonce="+l3e7R57mMzsMpBfx4V1DKlI
pcFKlqzbF976Bkx3rf8=",cnonce="+l3e7R57mMzsMpBfx4V1DKlIpcFKlqzbF976Bkx3rf8=",
nc=00000001,qop=auth,digest-uri="rcmd/deiter",response=c4a1c00f8962055d17c25
04efbd28ea4
bad protocol from server (Ъ ffffffff)
closing connection

/var/log/messages:
Mar  1 17:26:41 deiter slapd[27521]: auxpropfunc error -7
Mar  1 17:27:03 deiter /kernel: pid 27522 (slapd), uid 0: exited on signal
11 (core dumped)

# gdb /usr/local/libexec/slapd ./slapd.core
GNU gdb 4.18 (FreeBSD)
Core was generated by `slapd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libdb41.so.1...(no debugging symbols
found)...
done.
Reading symbols from /usr/local/lib/libsasl2.so.2...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libssl.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libcrypto.so.2...(no debugging symbols
found)...
done.
Reading symbols from /usr/lib/libfetch.so.3...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libcom_err.so.2...(no debugging symbols
found)...
done.
Reading symbols from /usr/lib/libwrap.so.3...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libc_r.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/sasl2/libsasldb.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/libcrammd5.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/libdigestmd5.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/libotp.so...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libopie.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/sasl2/libplain.so...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/sasl2/libanonymous.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/liblogin.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/libntlm.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/sasl2/libldapdb.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libldap.so.2...(no debugging symbols
found)...
done.
Reading symbols from /usr/local/lib/liblber.so.2...(no debugging symbols
found)...
done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols
found)...
done.
#0  0x805cb10 in free ()
(gdb) bt
#0  0x805cb10 in free ()
#1  0x8164910 in ?? ()
#2  0x807b4f3 in free ()
#3  0x807e718 in free ()
#4  0x281a81e6 in do_authorization () from /usr/local/lib/libsasl2.so.2
#5  0x281a876a in sasl_server_step () from /usr/local/lib/libsasl2.so.2
#6  0x281a85e4 in sasl_server_start () from /usr/local/lib/libsasl2.so.2
#7  0x807f06e in free ()
#8  0x8065188 in free ()
#9  0x80514cc in free ()
#10 0x80a3c9b in free ()
#11 0x282c27e3 in _thread_start () from /usr/lib/libc_r.so.4
#12 0x0 in ?? ()
(gdb)

What to do ?
Thanks!